Skip to content

Commit

Permalink
[Backport 2.x] Fix backport branch name is not correct (#71)
Browse files Browse the repository at this point in the history
* Fix backport branch name is not correct (#69)

Signed-off-by: Hailong Cui <[email protected]>
(cherry picked from commit 05c8fe0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* include fix in #70

Signed-off-by: zhichao-aws <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: zhichao-aws <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: zhichao-aws <[email protected]>
  • Loading branch information
3 people authored Dec 27, 2023
1 parent 8f746aa commit 8aadce4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ on:
jobs:
backport:
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
permissions:
contents: write
pull-requests: write
Expand All @@ -26,6 +37,6 @@ jobs:
uses: VachaShah/[email protected]
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
head_template: backport/backport-<%= number %>-to-<%= base %>
labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>"
failure_labels: "failed backport"

0 comments on commit 8aadce4

Please sign in to comment.