cherry_pick #25
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: cherry_pick | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseBranch: | |
description: 'release branch (e.g. release-v0.48.x)' | |
required: true | |
type: string | |
version: | |
description: 'release version (e.g. v0.48.1)' | |
required: true | |
type: string | |
jobs: | |
tool: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: make a cherry-pick PR | |
run: | | |
git config user.name "pipecd-bot" | |
git config user.email "pipecd.dev@gmail.com" | |
./hack/cherry-pick.sh -q ${{ inputs.releaseBranch }} $(gh pr list --label cherry-pick --label ${{ inputs.version }} --state merged | awk '{print $1}' | sort | paste -sd ' ' -) | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |