Skip to content

Commit d3f4b3c

Browse files
Fix backport workflow (#533) (#560)
* Fix backport workflow * Add condition --------- (cherry picked from commit 2159862) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a2820c8 commit d3f4b3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/backport.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
backport:
10+
if: github.event.pull_request.merged == true
1011
runs-on: ubuntu-latest
1112
permissions:
1213
contents: write
@@ -25,4 +26,5 @@ jobs:
2526
uses: VachaShah/backport@v2.2.0
2627
with:
2728
github_token: ${{ steps.github_app_token.outputs.token }}
28-
branch_name: backport/backport-${{ github.event.number }}
29+
head_template: backport/backport-<%= number %>-to-<%= base %>
30+
failure_labels: backport-failed

0 commit comments

Comments
 (0)