From 5acd2f6c3a961fe517895ef646cdca6c5fca5234 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Mon, 2 May 2022 08:27:17 +0800 Subject: [PATCH] chore: workflow --- .github/workflows/prerelease.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index a8d2ef0c..2491f013 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -34,7 +34,7 @@ jobs: - name: Test - if: ${{env.GITHUB_REF_NAME=='Beta'}} + if: ${{github.ref_name=='Beta'}} run: | go test ./... @@ -49,13 +49,13 @@ jobs: uses: andreaswilli/delete-release-assets-action@v2.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag: Prerelease-${{env.GITHUB_REF_NAME}} + tag: Prerelease-${{ github.ref_name }} deleteOnlyFromDrafts: false - name: Tag Repo uses: richardsimko/update-tag@v1 with: - tag_name: Prerelease-${{env.GITHUB_REF_NAME}} + tag_name: Prerelease-${{ github.ref_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -63,8 +63,8 @@ jobs: uses: softprops/action-gh-release@v1 if: ${{ success() }} with: - tag: ${{env.GITHUB_REF_NAME}} - tag_name: Prerelease-${{env.GITHUB_REF_NAME}} + tag: ${{ github.ref_name }} + tag_name: Prerelease-${{ github.ref_name }} files: bin/* prerelease: true generate_release_notes: true