ci: run gitea action from PR mutally exclusive to push
Build'n check / run-ci-linux (pull_request) Has been cancelled Details
Build'n check / run-ci-linux (push) Successful in 2m23s Details

Run-Checks
This commit is contained in:
Sven Vogel 2024-11-21 16:15:36 +01:00
parent c06ddd544c
commit e0b1e9db49
1 changed files with 4 additions and 1 deletions

View File

@ -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