mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-21 15:11:47 +00:00
Bumps the ci group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [google-github-actions/auth](https://github.com/google-github-actions/auth) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/checkout` from 4.1.5 to 4.1.6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](44c2b7a8a4...a5ac7e51b4) Updates `google-github-actions/auth` from 2.1.2 to 2.1.3 - [Release notes](https://github.com/google-github-actions/auth/releases) - [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md) - [Commits](55bd3a7c6e...71fee32a0b) Updates `github/codeql-action` from 2.13.4 to 3.25.5 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](cdcdbb5797...b7cec75265) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: ci - dependency-name: google-github-actions/auth dependency-type: direct:production update-type: version-update:semver-patch dependency-group: ci - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: ci ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Create backport PRs
|
|
uses: korthout/backport-action@ef20d86abccbac3ee3a73cb2efbdc06344c390e5 # v2.5.0
|
|
# 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}.
|