Derive and pass workload secrets to initializer #1025
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 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }} | |
- name: Create backport PRs | |
uses: korthout/backport-action@bd410d37cdcae80be6d969823ff5a225fe5c833f # v3.0.2 | |
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} |