Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 090be57

Browse files
committed
Fix bash script run failed
1 parent 6c38eab commit 090be57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ jobs:
5252
- name: Get latest release
5353
id: version_update
5454
run: |
55-
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/tags/"* ]]; then
55+
if [[ ${{ github.event_name }} == push && ${{ github.ref }} == refs/tags/* ]]; then
5656
echo "VERSION=${GITHUB_REF#refs/tags/}"
57-
NEW_VERSION="${LATEST_TAG#v}""
57+
NEW_VERSION="${VERSION#v}"
5858
echo "::set-output name=new_version::$NEW_VERSION"
5959
else
6060
# Function to get the latest release tag

0 commit comments

Comments
 (0)