Skip to content

Commit c17ce4a

Browse files
committed
Updated workflow name and fixed version extraction from release tag
1 parent 032d483 commit c17ce4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Automatic package publishing
1+
name: Docs Website
22

33
on:
44
workflow_dispatch:
@@ -30,7 +30,7 @@ jobs:
3030
3131
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
3232
33-
[ [ "${{ github.ref }}" == "refs/tags/"* ] ] && VERSION=$(echo $VERSION | sed -e 's/^v//')
33+
[[ "$GITHUB_REF" == refs/tags/* ]] && VERSION=$(echo "$VERSION" | sed -e 's/^v//')
3434
3535
[ "$VERSION" == "main" ] && VERSION=latest
3636
echo IMAGE_ID=$IMAGE_ID

0 commit comments

Comments
 (0)