Skip to content

Commit

Permalink
[GitHub Actions] Flatpak: Fix retrieval of SOURCE_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 14, 2022
1 parent 05529ea commit 95a9f01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI_flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
WZ_FLATPAK_BRANCH="${WZ_BUILD_DESC_PREFIX}"
if [ "$WZ_BUILD_DESC_IS_TAG" == "true" ]; then
SOURCE_TAG="${WZ_GITHUB_REF#refs/tags/}"
# Verify tag format (three-component version + optional trailing qualifier like "-beta1" or "-rc1") if on a tag
regex="^([0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*)([\-][A-Za-z0-9]+)?$";
if [[ ! "${SOURCE_TAG}" =~ $regex ]]; then
Expand Down

0 comments on commit 95a9f01

Please sign in to comment.