Skip to content

Commit

Permalink
fix version number in aur publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorriegler committed Jul 2, 2024
1 parent d7532cf commit f9b7750
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-aur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
run: |
mkdir -p ./aur/${{ env.PACKAGE_NAME }}/
# Strip the leading "v" from the version
VERSION_NUMBER="${{ env.VERSION }}".replace(/^v/, '')
VERSION_NUMBER=${{ env.VERSION }} # Using string replacement in YAML
VERSION_NUMBER=${VERSION_NUMBER#v} # Strip 'v' at the start
echo "Version number for PKGBUILD is $VERSION_NUMBER"
cat > ./aur/${{ env.PACKAGE_NAME }}/PKGBUILD << EOF
pkgname=${{ env.PACKAGE_NAME }}
pkgver=$VERSION_NUMBER
Expand Down

0 comments on commit f9b7750

Please sign in to comment.