Skip to content

Commit

Permalink
Merge queue improvements (#619)
Browse files Browse the repository at this point in the history
* Never cancel merge group events

* Do not run the push triggers on gh-readonly-queue branches
  • Loading branch information
MOZGIII authored Mar 29, 2023
1 parent c5e4965 commit 90c6853
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.event_name != 'merge_group' }}

jobs:

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: code

on:
push:
branches:
- '**'
- '!gh-readonly-queue/**'
merge_group:
schedule:
- cron: '0 20 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.event_name != 'merge_group' }}

defaults:
run:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
push:
branches:
- '**'
- '!gh-readonly-queue/**'
tags:
- 'v*.*.*'
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.event_name != 'merge_group' }}

jobs:

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/toml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: toml

on:
push:
branches:
- '**'
- '!gh-readonly-queue/**'
merge_group:
schedule:
- cron: '0 20 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.event_name != 'merge_group' }}

jobs:

Expand Down

0 comments on commit 90c6853

Please sign in to comment.