Skip to content

Commit 7d468c9

Browse files
committed
Accept toolcache as version value for prepare-test
1 parent 425ef85 commit 7d468c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/actions/prepare-test/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Prepare test"
22
description: Performs some preparation to run tests
33
inputs:
44
version:
5-
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
5+
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'toolcache', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
66
required: true
77
use-all-platform-bundle:
88
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
@@ -41,6 +41,9 @@ runs:
4141
elif [[ "$VERSION" == "linked" ]]; then
4242
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
4343
exit 0
44+
elif [[ "$VERSION" == "toolcache" ]]; then
45+
echo "tools-url=toolcache" >> "$GITHUB_OUTPUT"
46+
exit 0
4447
elif [[ "$VERSION" == "default" ]]; then
4548
echo "tools-url=" >> "$GITHUB_OUTPUT"
4649
exit 0

0 commit comments

Comments
 (0)