Skip to content

Commit 9e8cbee

Browse files
committed
Process nightly CI runs using tools: nightly
1 parent 0f4529e commit 9e8cbee

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,31 @@ runs:
3535
run: |
3636
set -e # Fail this Action if `gh release list` fails.
3737
38-
if [[ "$VERSION" == "linked" ]]; then
38+
if [[ "$VERSION" == "nightly" || "$VERSION" == "nightly-latest" ]]; then
39+
echo "tools-url=nightly" >> "$GITHUB_OUTPUT"
40+
exit 0
41+
elif [[ "$VERSION" == "linked" ]]; then
3942
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
4043
exit 0
4144
elif [[ "$VERSION" == "default" ]]; then
4245
echo "tools-url=" >> "$GITHUB_OUTPUT"
4346
exit 0
4447
fi
4548
46-
if [[ "$VERSION" == "nightly-latest" && "$RUNNER_OS" != "Windows" ]]; then
47-
extension="tar.zst"
48-
else
49-
extension="tar.gz"
50-
fi
51-
5249
if [[ "$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then
53-
artifact_name="codeql-bundle.$extension"
50+
artifact_name="codeql-bundle.tar.gz"
5451
elif [[ "$RUNNER_OS" == "Linux" ]]; then
55-
artifact_name="codeql-bundle-linux64.$extension"
52+
artifact_name="codeql-bundle-linux64.tar.gz"
5653
elif [[ "$RUNNER_OS" == "macOS" ]]; then
57-
artifact_name="codeql-bundle-osx64.$extension"
54+
artifact_name="codeql-bundle-osx64.tar.gz"
5855
elif [[ "$RUNNER_OS" == "Windows" ]]; then
59-
artifact_name="codeql-bundle-win64.$extension"
56+
artifact_name="codeql-bundle-win64.tar.gz"
6057
else
6158
echo "::error::Unrecognized OS $RUNNER_OS"
6259
exit 1
6360
fi
6461
65-
if [[ "$VERSION" == "nightly-latest" ]]; then
66-
tag=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
67-
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/$artifact_name" >> $GITHUB_OUTPUT
68-
elif [[ "$VERSION" == *"nightly"* ]]; then
62+
if [[ "$VERSION" == *"nightly"* ]]; then
6963
version=`echo "$VERSION" | sed -e 's/^.*\-//'`
7064
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
7165
elif [[ "$VERSION" == *"stable"* ]]; then

0 commit comments

Comments
 (0)