File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 11name : Backport
22on :
3- pull_request :
3+ pull_request_target :
44 types :
55 - closed
66 - labeled
77
88jobs :
99 backport :
10- runs-on : ubuntu-latest
1110 name : Backport
11+ runs-on : ubuntu-latest
12+ # Only react to merged PRs for security reasons.
13+ # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
14+ if : >
15+ github.event.pull_request.merged
16+ && (
17+ github.event.action == 'closed'
18+ || (
19+ github.event.action == 'labeled'
20+ && contains(github.event.label.name, 'backport')
21+ )
22+ )
1223 steps :
13- - name : Backport
14- uses : tibdex/backport@7005ef85c4562bc23b0e9b4a9940d5922f439750 # v2
24+ - uses : tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
1525 with :
1626 github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments