Skip to content

cherry_pick

cherry_pick #25

Workflow file for this run

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 }}