From 4709c0620f62656434225ae247adccc61e1c56ea Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Wed, 18 May 2022 19:05:18 +0800 Subject: [PATCH] mod: update workflow --- .github/workflows/auto-cherry-pick.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-cherry-pick.yml b/.github/workflows/auto-cherry-pick.yml index 3d52805a..aa561ddc 100644 --- a/.github/workflows/auto-cherry-pick.yml +++ b/.github/workflows/auto-cherry-pick.yml @@ -6,7 +6,7 @@ defaults: shell: bash jobs: - auto-cherry-pick: + auto-cherry-pick: runs-on: [self-hosted, nebula-fast] container: image: reg.vesoft-inc.com/dashboard/dashboard-dev:centos7 @@ -14,8 +14,17 @@ jobs: username: ${{ secrets.HARBOR_USERNAME }} password: ${{ secrets.HARBOR_PASSWORD }} steps: + - name: keep workspace empty + run: | + rm -rf * + - name: git config set + env: + CLOUD_GH_PAT: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global url."https://${GITHUB_TOKEN}: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: - from_repo: vesoft-inc/nebula-studio - pr_label: ^v[0-9]*\.[0-9]*-cherry-pick$ + pr_label: ^v[0-9]*\.[0-9]*(.[0-9])?-cherry-pick$ + repo_token: ${{ secrets.GITHUB_TOKEN }}