File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11name : Example Workflow
22
33on :
4- workflow_run :
5- workflows : ["PR Permission Gate"]
6- types :
7- - completed
4+ pull_request :
5+ branches :
6+ - main
87
98permissions :
109 contents : read
1110
11+ concurrency :
12+ group : pr-${{ github.event.pull_request.number }}
13+ cancel-in-progress : true
14+
1215jobs :
1316 pre-commit :
14- if : ${{ github.event.workflow_run.conclusion == 'success' }}
1517 runs-on : ubuntu-latest
1618 steps :
1719 - uses : actions/checkout@v5
Original file line number Diff line number Diff line change 2020 - name : Checkout base branch (safe)
2121 uses : actions/checkout@v5
2222 with :
23- # checkout the workflow's commit (base branch), not the PR head
2423 ref : ${{ github.event.pull_request.base.sha }}
2524 fetch-depth : 1
26-
2725 - name : Run permission gate (from base)
2826 uses : ./.github/actions/pr-permission-gate
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ default_stages:
88
99repos :
1010 - repo : https://github.com/reteps/dockerfmt
11- # run `pre-commit autoupdate` to pin the version
12- rev : main
11+ rev : v0.3.9
1312 hooks :
1413 - id : dockerfmt
1514 args :
You can’t perform that action at this time.
0 commit comments