Skip to content

Commit

Permalink
add auto cherry pick (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy committed Jan 12, 2023
1 parent 23c77aa commit abfe2c7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/auto_cherry_pick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: [self-hosted, nebula-fast]
container:
image: reg.vesoft-inc.com/dashboard/dashboard-dev:centos7
credentials:
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
steps:
- name: keep workspace empty
run: |
rm -rf *
- name: git config set
env:
GH_BOT_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global url."https://${GH_BOT_PAT}:x-oauth-basic@github.com/".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: false

0 comments on commit abfe2c7

Please sign in to comment.