Skip to content

Commit

Permalink
Updating backport workflow to include custom branch name (opensearch-…
Browse files Browse the repository at this point in the history
…project#302)

* Updating backport workflow to include custom branch name

Signed-off-by: Vacha Shah <[email protected]>
  • Loading branch information
VachaShah authored Feb 21, 2022
1 parent c962bca commit 2090b1e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
name: Backport
on:
pull_request:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
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: tibdex/backport@v1
uses: VachaShah/backport@v1.1.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}

0 comments on commit 2090b1e

Please sign in to comment.