Skip to content

Commit

Permalink
ci: ensure versions are properly prefixed
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Jul 31, 2024
1 parent 60d3cbc commit bf50450
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/zxc-retrieve-upstream-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ jobs:
- name: Retrieve Runner Version
id: runner
run: |
TARGET_TAG="${{ steps.explicit-runner.outputs.version || '' }}"
TARGET_TAG="v${{ steps.explicit-runner.outputs.version || '' }}"
[[ "${TARGET_TAG}" == "v" ]] && TARGET_TAG=""
LATEST_TAG="$(gh release view ${TARGET_TAG} -R actions/runner --json tagName | jq -r '.tagName')"
VERSION="$(semver get release ${LATEST_TAG})"
echo "version=${VERSION}" >>"${GITHUB_OUTPUT}"
Expand All @@ -124,7 +125,8 @@ jobs:
- name: Retrieve Runner Container Hooks Version
id: hooks
run: |
TARGET_TAG="${{ steps.explicit-hooks.outputs.version || '' }}"
TARGET_TAG="v${{ steps.explicit-hooks.outputs.version || '' }}"
[[ "${TARGET_TAG}" == "v" ]] && TARGET_TAG=""
LATEST_TAG="$(gh release view ${TARGET_TAG} -R actions/runner-container-hooks --json tagName | jq -r '.tagName')"
VERSION="$(semver get release ${LATEST_TAG})"
echo "version=${VERSION}" >>"${GITHUB_OUTPUT}"

0 comments on commit bf50450

Please sign in to comment.