From 60d44538f02d1ccdb4d120d68f2477d93c7184db Mon Sep 17 00:00:00 2001 From: xilesun <2013xile@gmail.com> Date: Wed, 6 Nov 2024 14:46:04 +0800 Subject: [PATCH] fix(ci): release.yml --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fa79d6392..09a134709e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ concurrency: cancel-in-progress: true on: + workflow_dispatch: push: tags: - 'v*' @@ -18,10 +19,8 @@ jobs: id: get-info run: | if [[ "${{ github.ref_name }}" =~ "beta" ]]; then - echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT else - echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT fi - uses: actions/create-github-app-token@v1 @@ -108,6 +107,14 @@ jobs: runs-on: ubuntu-latest needs: publish-npm steps: + - name: Get info + id: get-info + run: | + if [[ "${{ github.ref_name }}" =~ "beta" ]]; then + echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT + else + echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT + fi - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU