fixed version getting
This commit is contained in:
2
.github/workflows/build-nightly-cron.yaml
vendored
2
.github/workflows/build-nightly-cron.yaml
vendored
@@ -60,7 +60,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
SPT_COMMIT_ID=${{ steps.get-latest-commit.outputs.SPT_COMMIT_ID }}
|
SPT_COMMIT_ID=${{ steps.get-latest-commit.outputs.SPT_COMMIT_ID }}
|
||||||
|
|
||||||
latest_tag=$(git ls-remote --tags ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER }}.git | awk -F'/' '{print $NF}' | sort -V | tail -1)
|
latest_tag=$(git ls-remote --tags ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER }}.git | awk -F'/' '{print $NF}' | grep -v '\^{}' | sort -V | tail -1)
|
||||||
SPT_VERSION=$(echo $latest_tag | cut -d'-' -f1)
|
SPT_VERSION=$(echo $latest_tag | cut -d'-' -f1)
|
||||||
|
|
||||||
# Extract versions from core.json
|
# Extract versions from core.json
|
||||||
|
|||||||
Reference in New Issue
Block a user