Skip to content

Commit

Permalink
Update backport workflow (#536)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Provost <[email protected]>
  • Loading branch information
BSFishy authored Feb 28, 2023
1 parent 4658c95 commit e8fcf75
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ jobs:
contents: write
pull-requests: write
name: Backport
# 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')
)
)
steps:
- name: GitHub App token
id: github_app_token
Expand All @@ -22,10 +33,9 @@ jobs:
# opensearch-trigger-bot installation ID
installation_id: 22958780

# Using fork of https://github.com/tibdex/backport
# https://github.com/tibdex/backport/pull/81
- name: Backport
uses: VachaShah/backport@v1.1.4
uses: VachaShah/backport@v2.1.0
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
head_template: backport/backport-<%= number %>-to-<%= base %>
files_to_skip: "CHANGELOG.md"

0 comments on commit e8fcf75

Please sign in to comment.