Skip to content

Commit

Permalink
cicd: Handle any kind of version for AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
alosarjos authored and johannesjo committed Sep 1, 2024
1 parent 14a32dc commit 16149bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-publish-to-aur-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: PACKAGE_VERSION=$(cat ./package.json | grep version | head -1 | sed 's/[^0-9.]*//g') && echo "package_version=$PACKAGE_VERSION" >> $GITHUB_ENV
- run: PACKAGE_VERSION=$(cat ./package.json | grep version | head -1 | awk -F '"' '{print $4}') && echo "package_version=$PACKAGE_VERSION" >> $GITHUB_ENV
- run: sed "s/PACKAGE_VERSION/${package_version}/g" build/linux/PKGBUILD_template > build/linux/PKGBUILD

- name: Publish AUR package
Expand Down

0 comments on commit 16149bf

Please sign in to comment.