Add support for HelmRepo OCI and NC v1beta3 static objects #318
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 | |
on: | |
pull_request_target: | |
types: [closed, labeled] | |
jobs: | |
pull-request: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
if: github.event.pull_request.state == 'closed' && github.event.pull_request.merged && (github.event_name != 'labeled' || startsWith('backport:', github.event.label.name)) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Create backport PRs | |
uses: korthout/backport-action@08bafb375e6e9a9a2b53a744b987e5d81a133191 # v2.1.1 | |
# xref: https://github.com/korthout/backport-action#inputs | |
with: | |
# Use token to allow workflows to be triggered for the created PR | |
github_token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
# Match labels with a pattern `backport:<target-branch>` | |
label_pattern: '^backport:([^ ]+)$' | |
# A bit shorter pull-request title than the default | |
pull_title: '[${target_branch}] ${pull_title}' | |
# Simpler PR description than default | |
pull_description: |- | |
Automated backport to `${target_branch}`, triggered by a label in #${pull_number}. |