Skip to content

Commit

Permalink
fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Feb 11, 2024
1 parent 01bda19 commit 170298b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/upm-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
set -e
PACKAGE_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2)
echo "Package name: $PACKAGE_NAME"
GIT_VERSIONS=$(git tag | sort -Vu)
GIT_VERSIONS=$(git tag | sort -Vu | tr '\n' ',')
ALL_VERSIONS=$(curl -sSf ${{ env.ARCHIVE }} | grep -oP "$PACKAGE_NAME-\K\d+\.\d+\.\d+(?=\.tgz)" | sort -Vu | awk -v last_version="$LAST_VERSION" '$0 > last_version' | tr '\n' ',')
if [ -z "$GIT_VERSIONS" ]; then
VERSIONS=$ALL_VERSIONS
Expand Down

0 comments on commit 170298b

Please sign in to comment.