Auto Cherry Pick #13
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: Auto Cherry Pick | |
on: | |
workflow_dispatch: | |
inputs: | |
pr_label: | |
description: "Cherry pick label such as 'cherry-pick-v3.2'" | |
required: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
auto-cherry-pick: | |
#if: ${{ startsWith(github.event.pull_request.labels.*.name, 'cherry-pick-') && github.event.pull_request.merged == true }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: git config set | |
env: | |
GH_BOT_PAT: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global url."https://${GH_BOT_PAT}:[email protected]/".insteadOf "https://github.com/" | |
export GOPRIVATE="github.com/vesoft-inc" | |
- name: auto cherry pick | |
uses: xigongdaEricyang/cherry-pick-robot@with-python | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
pr_label: ${{ github.event.inputs.pr_label }} | |
#pr_num: ${{ github.event.pull_request.number }} | |
auto_merge: true |