ci/fix(sync-changes-to-child-branches): update cherry-pick-branch name #4
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: Sync changes to remote child branches | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [ closed ] | |
paths-ignore: | |
- 'dae/metadata.json' | |
- 'daed/metadata.json' | |
env: | |
PR_TEAM_REVIEWERS: | | |
nix | |
jobs: | |
sync-changes: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
strategy: | |
matrix: | |
include: | |
- branch: unstable | |
labels: | | |
branch/unstable | |
automerge | |
- branch: experiment | |
labels: branch/experiment | |
fail-fast: false | |
steps: | |
- name: Generate GitHub Auth Token | |
# https://github.com/tibdex/github-app-token | |
id: generate_token | |
uses: tibdex/[email protected] | |
with: | |
app_id: ${{ secrets.GH_APP_ID }} | |
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@main | |
with: | |
ref: ${{ github.event.repository.default_branch }} | |
fetch-depth: 0 | |
- name: Cherry pick changes into target branch | |
# https://github.com/carloscastrojumo/github-cherry-pick-action | |
uses: carloscastrojumo/[email protected] | |
with: | |
branch: ${{ matrix.branch }} | |
labels: | | |
git/cherry-pick | |
${{ matrix.labels }} | |
team-reviewers: ${{ env.PR_TEAM_REVIEWERS }} | |
title: '[cherry-pick] {old_title}' | |
body: 'ci: cherry picking #{old_pull_request_id} onto ${{ matrix.branch }}' | |
cherry-pick-branch: cherry-pick-${inputs.branch}-${commitSha}-${{ github.run_id }} | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |