Skip to content

Commit a9a212e

Browse files
committed
add trigger only run when pr exists
1 parent f72eae2 commit a9a212e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release_pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: Update release PR
22

33
on:
4-
push:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- master
58
workflow_dispatch:
69

710
jobs:
811
update-pr:
12+
if: github.head_ref == 'dev'
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)