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: on:
pull_request: pull_request:
types: [opened, reopened, synchronize] types: [opened, reopened, synchronize]
merge_group:
jobs: jobs:
check-commits: check-commits:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -24,3 +26,10 @@ jobs:
- name: Run checks - name: Run checks
run: | run: |
./dist/tools/${{ matrix.check }}/check.sh "${{ github.base_ref }}" ./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] types: [opened, reopened, labeled, unlabeled, synchronize]
pull_request_review: pull_request_review:
types: [submitted, dismissed] types: [submitted, dismissed]
merge_group:
jobs: jobs:
check-labels: check-labels:
if: github.event_name != 'merge_group'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: RIOT-OS/check-labels-action@v1.1.1 - uses: RIOT-OS/check-labels-action@v1.1.1

View File

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

View File

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

View File

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

View File

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