mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 09:17:27 +00:00
Bumps the ci group with 2 updates: [korthout/backport-action](https://github.com/korthout/backport-action) and [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action). Updates `korthout/backport-action` from 1.3.1 to 1.4.0 - [Release notes](https://github.com/korthout/backport-action/releases) - [Commits](bf5fdd624b...bd68141f07) Updates `goreleaser/goreleaser-action` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](336e29918d...3fa32b8bb5) --- updated-dependencies: - dependency-name: korthout/backport-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ci - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-minor 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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Create backport PRs
|
|
uses: korthout/backport-action@bd68141f079bd036e45ea8149bc9d174d5a04703 # v1.4.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}.
|