Skip to content

Commit

Permalink
Merge pull request #34 from macohen/main
Browse files Browse the repository at this point in the history
updating backport to 2.0
  • Loading branch information
macohen authored Nov 1, 2022
2 parents 61a7232 + 010d301 commit 1b3e237
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@ on:

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: 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')
)
)
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Backport
uses: VachaShah/[email protected]
- uses: VachaShah/backport@v2
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1b3e237

Please sign in to comment.