From ce1b83257be0ea0ab410c76bc43bd04f90c13d6f Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Tue, 26 Dec 2023 11:18:34 +0800 Subject: [PATCH] fix --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51ce0bc..39b096f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,11 +39,14 @@ jobs: - name: Remove existing mutalbe tag "nightly" # https://github.com/softprops/action-gh-release/issues/171 - run: git push origin :refs/tags/nightly || true - # https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution - if: ${{ env.RELEASE_TAG }} == "nightly" + run: | + if [[ $RELEASE_TAG =~ ^v(.*) ]]; then + else + echo "try removing mutalbe tag $RELEASE_TAG" + git push origin :refs/tags/$RELEASE_TAG || true + fi - - name: Create or overwrite a releae + - name: Create or overwrite a release # https://github.com/actions/upload-release-asset has been replaced by https://github.com/softprops/action-gh-release uses: softprops/action-gh-release@v1 with: