Skip to content

Commit f9b7750

Browse files
committed
fix version number in aur publish
1 parent d7532cf commit f9b7750

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-aur.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
run: |
2424
mkdir -p ./aur/${{ env.PACKAGE_NAME }}/
2525
# Strip the leading "v" from the version
26-
VERSION_NUMBER="${{ env.VERSION }}".replace(/^v/, '')
26+
VERSION_NUMBER=${{ env.VERSION }} # Using string replacement in YAML
27+
VERSION_NUMBER=${VERSION_NUMBER#v} # Strip 'v' at the start
28+
echo "Version number for PKGBUILD is $VERSION_NUMBER"
2729
cat > ./aur/${{ env.PACKAGE_NAME }}/PKGBUILD << EOF
2830
pkgname=${{ env.PACKAGE_NAME }}
2931
pkgver=$VERSION_NUMBER

0 commit comments

Comments
 (0)