From ab286793a85c27f573c0ac04289be91fbf19805c Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:32:56 +0100 Subject: [PATCH] ci: run either on OR or push but only when Run-Checks is specified --- .gitea/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 56ce55a..3834a8a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,6 +4,10 @@ on: pull_request: branches: - main + push: + branches-ignore: + - main + jobs: run-ci-linux: runs-on: ubuntu-latest @@ -11,7 +15,8 @@ jobs: # push with commit containing "Run-Checks" if: > (contains(github.event.head_commit.message, 'Run-Checks') && - github.event_name == 'push') + github.event_name == 'push') || + github.event_name == 'pull_request' steps: - name: Check out repository code uses: actions/checkout@v3