From e0b1e9db4941f04776ee291325da6f445cf43914 Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 21 Nov 2024 16:15:36 +0100 Subject: [PATCH] ci: run gitea action from PR mutally exclusive to push Run-Checks --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 56e46c9..bc4eec0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,8 +8,11 @@ on: jobs: run-ci-linux: runs-on: ubuntu-latest + # run action mutally exclusive on PRs or + # push with commit containing "Run-Checks" if: > - contains(github.event.head_commit.message, 'Run-Checks') || + (contains(github.event.head_commit.message, 'Run-Checks') && + github.event_name == 'push') || github.event_name == 'pull_request' steps: - name: Check out repository code