ci: run either on OR or push but only when Run-Checks is specified
Build'n check / run-ci-linux (pull_request) Successful in 2m18s Details
Build'n check / run-ci-linux (push) Successful in 2m14s Details

This commit is contained in:
Sven Vogel 2024-11-25 16:32:56 +01:00
parent e173f87b61
commit ab286793a8
1 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@ on:
pull_request: pull_request:
branches: branches:
- main - main
push:
branches-ignore:
- main
jobs: jobs:
run-ci-linux: run-ci-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -11,7 +15,8 @@ jobs:
# push with commit containing "Run-Checks" # push with commit containing "Run-Checks"
if: > if: >
(contains(github.event.head_commit.message, 'Run-Checks') && (contains(github.event.head_commit.message, 'Run-Checks') &&
github.event_name == 'push') github.event_name == 'push') ||
github.event_name == 'pull_request'
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3