Merge pull request #5608 from piotrkwiecinski/github-actions-triggers

prevent CI creating 2 events on each pull request push
This commit is contained in:
Sylvestre Ledru 2023-12-02 09:39:29 +01:00 committed by GitHub
commit 6d0ffe9f80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 6 deletions

View file

@ -15,7 +15,11 @@ env:
# * style job configuration
STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)

View file

@ -9,7 +9,11 @@ name: GnuTests
# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
permissions:
contents: read

View file

@ -2,7 +2,12 @@ name: Android
# spell-checker:ignore TERMUX reactivecircus Swatinem noaudio pkill swiftshader dtolnay juliangruber
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)

View file

@ -2,7 +2,11 @@ name: Code Quality
# spell-checker:ignore TERMUX reactivecircus Swatinem noaudio pkill swiftshader dtolnay juliangruber
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
env:
# * style job configuration

View file

@ -6,7 +6,11 @@ env:
# * style job configuration
STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)

View file

@ -2,7 +2,11 @@ name: Fuzzing
# spell-checker:ignore fuzzer
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)