[Backport next] CI: Update to use Github App (#516) #420
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Backport merged pull request | |
on: # yamllint disable-line rule:truthy | |
pull_request_target: | |
types: [closed, labeled] | |
jobs: | |
backport: | |
name: Backport pull request | |
runs-on: ubuntu-latest | |
# Don't run on closed unmerged pull requests | |
if: github.event.pull_request.merged | |
steps: | |
- name: Clone Firmware | |
uses: actions/checkout@v4 # v4 | |
- name: Get Github App Token | |
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
id: app-token | |
with: | |
app-id: ${{ vars.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
- name: Create backport pull requests | |
uses: korthout/backport-action@be567af183754f6a5d831ae90f648954763f17f5 # v3.1.0 | |
with: | |
github_token: ${{ steps.app-token.outputs.token }} | |
experimental: > | |
{ | |
"conflict_resolution": "draft_commit_conflicts" | |
} |