mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-17 16:07:21 +00:00
The tarball-name pattern allowed no hyphen in the version, so a prerelease (photocraft-0.2.0-rc.1-linux-x86_64.tar.gz) did not match and fell back to version 0.0.0: the draft release got photocraft-0.0.0-linux-x86_64.pkg.tar.zst with pkgver=0.0.0. Accept the prerelease and drop its hyphens from pkgver (0.2.0rc.1, which pacman sorts before 0.2.0). A numeric prerelease gets a letter in front (1.2.3-1 is 1.2.3pre1), since 1.2.31 would sort after 1.2.4. This also drops the pkgrel-from-suffix branch, which the old pattern made unreachable and which would have turned 0.2.0-rc.1 into pkgver 0.2.0.