Skip to content

Use Github Bot for Actions #405

Use Github Bot for Actions

Use Github Bot for Actions #405

Workflow file for this run

---
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- 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"
}