Skip to content

Commit

Permalink
add tag override (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
McCallisterRomer authored Jun 1, 2024
1 parent 690ba46 commit 9b2c7a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
uses: ./
with:
sdkVersion: '${{ matrix.sdkVersion }}'
env:
VK_CI_TEST_TAG_OVERRIDE: ${{ vars.TEST_TAG }}

- name: Test Environment
shell: bash
Expand Down
13 changes: 5 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ runs:
exit 1
fi
if [ -n "$ACTION_TAG" ]; then
echo "vk-ci-action-tag=$ACTION_TAG" >> "$GITHUB_OUTPUT"
echo "Using action ref: $ACTION_TAG"
if [ -n "${{ env.VK_CI_TEST_TAG_OVERRIDE }}" ]; then
echo "Test run detected. Using artifacts from release: ${{ env.VK_CI_TEST_TAG_OVERRIDE }}"
echo "vk-ci-action-tag=${{ env.VK_CI_TEST_TAG_OVERRIDE }}" >> "$GITHUB_OUTPUT"
else
LATEST_TAG=$(curl -s \
"https://api.github.com/repos/NcStudios/VulkanCI/releases/latest" \
| jq -r .tag_name)
echo "vk-ci-action-tag=$LATEST_TAG" >> "$GITHUB_OUTPUT"
echo "Using latest tag: $LATEST_TAG"
echo "Using artifacts from release: $ACTION_TAG"
echo "vk-ci-action-tag=$ACTION_TAG" >> "$GITHUB_OUTPUT"
fi
- name: Download Artifacts
Expand Down

0 comments on commit 9b2c7a4

Please sign in to comment.