1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

.github/workflows/*: Allow merge_groups and prs to be required

This commit is contained in:
MrKevinWeiss 2023-11-08 11:31:07 +01:00 committed by Kaspar Schleiser
parent 1e7f488448
commit d41e368bf7
6 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,8 @@ name: check-commits
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
jobs:
check-commits:
runs-on: ubuntu-latest
@ -24,3 +26,10 @@ jobs:
- name: Run checks
run: |
./dist/tools/${{ matrix.check }}/check.sh "${{ github.base_ref }}"
check-commits-success:
needs: check-commits
if: github.event_name != 'merge_group'
runs-on: ubuntu-latest
steps:
- name: check-commits succeeded
run: exit 0

View File

@ -4,8 +4,11 @@ on:
types: [opened, reopened, labeled, unlabeled, synchronize]
pull_request_review:
types: [submitted, dismissed]
merge_group:
jobs:
check-labels:
if: github.event_name != 'merge_group'
runs-on: ubuntu-latest
steps:
- uses: RIOT-OS/check-labels-action@v1.1.1

View File

@ -3,10 +3,12 @@ name: pr-labeler
on:
pull_request_target:
types: [opened, synchronize, reopened]
merge_group:
jobs:
triage:
runs-on: ubuntu-latest
if: github.event_name != 'merge_group'
steps:
- uses: actions/labeler@main
with:

View File

@ -13,6 +13,7 @@ on:
pull_request:
branches:
- '*'
merge_group:
jobs:
static-tests:

View File

@ -11,6 +11,7 @@ on:
pull_request:
branches:
- '*'
merge_group:
jobs:
tools-build:

View File

@ -9,9 +9,11 @@ on:
pull_request:
branches:
- '*'
merge_group:
jobs:
python-tests:
if: github.event_name != 'merge_group'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main