github: cancel obsolete in-progress workflows #373
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] | |
permissions: | |
contents: write # so it can comment | |
pull-requests: write # so it can create pull requests | |
actions: write # so it can create pull requests on actions/workflows | |
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: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Create backport pull requests | |
uses: korthout/backport-action@be567af183754f6a5d831ae90f648954763f17f5 # v3.1.0 | |
with: | |
experimental: > | |
{ | |
"conflict_resolution": "draft_commit_conflicts" | |
} |