Skip to content

ci: check for unclean patches #1313

ci: check for unclean patches

ci: check for unclean patches #1313

Workflow file for this run

name: backport pr
on:
pull_request:
types: [closed]
issue_comment:
types: [created]
jobs:
backport:
if: |
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/backport')
)
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }}
- name: Create backport PRs
uses: korthout/backport-action@be567af183754f6a5d831ae90f648954763f17f5 # v3.1.0
with:
copy_milestone: true
copy_labels_pattern: '.*'
pull_title: '[${target_branch}] ${pull_title}'
github_token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }}
pull_description: |
Backport of #${pull_number} to `${target_branch}`.
Original description:
---
${pull_description}