Skip to content

Commit 211c8ca

Browse files
committed
update
Signed-off-by: Junpu Fan <junpu@amazon.com>
1 parent 8350091 commit 211c8ca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/pr-example.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: Example Workflow
22

33
on:
4-
workflow_run:
5-
workflows: ["PR Permission Gate"]
6-
types:
7-
- completed
4+
on:
5+
pull_request:
6+
branches:
7+
- main
88

99
permissions:
1010
contents: read
1111

12+
concurrency:
13+
group: pr-${{ github.event.pull_request.number }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
pre-commit:
14-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)