Skip to content

Commit

Permalink
[Backport 2.x] Fix backport branch name is not correct (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#71)

* Fix backport branch name is not correct (opensearch-project#69)

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

* include fix in opensearch-project#70

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
3 people authored and yuye-aws committed Apr 26, 2024
1 parent 73ce329 commit 1c610be
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/backport@v2.2.0
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 1c610be

Please sign in to comment.