-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34e728d
commit ff8380d
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Auto Cherry Pick | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch_from: | ||
description: "which branch you want to cherry pick, eg: v3.1.0" | ||
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@for-doc | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
from_branch: ${{ github.event.inputs.branch_from }} | ||
#pr_num: ${{ github.event.pull_request.number }} | ||
auto_merge: false |