Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add auto_cherry_pick.yml #1906

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
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