From b5b83fd62b8e1fe76cc8182021d718b7e76ab518 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 15 Oct 2023 18:07:57 +0200 Subject: [PATCH] only run CI on the main branch + pull_request --- .forgejo/workflows/example-docker-compose.yml | 4 +++- .forgejo/workflows/test.yml | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/example-docker-compose.yml b/.forgejo/workflows/example-docker-compose.yml index 1b9c2e0..ee71ca6 100644 --- a/.forgejo/workflows/example-docker-compose.yml +++ b/.forgejo/workflows/example-docker-compose.yml @@ -1,7 +1,9 @@ # SPDX-License-Identifier: MIT on: - pull_request_target: push: + branches: + - 'main' + pull_request_target: jobs: example-docker-compose: diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index ec95a5a..8f0abe2 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,7 +1,9 @@ name: checks -on: - - pull_request - - push +on: + push: + branches: + - 'main' + pull_request: env: FORGEJO_HOST_PORT: 'forgejo:3000'