File tree 1 file changed +8
-4
lines changed
.github/actions/prepare-test
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 32
32
run : |
33
33
set -e # Fail this Action if `gh release list` fails.
34
34
35
+ if [[ ${{ inputs.version }} == "linked" ]]; then
36
+ echo "tools-url=linked" >> "$GITHUB_OUTPUT"
37
+ exit 0
38
+ elif [[ ${{ inputs.version }} == "default" ]]; then
39
+ echo "tools-url=" >> "$GITHUB_OUTPUT"
40
+ exit 0
41
+ fi
42
+
35
43
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
36
44
extension="tar.zst"
37
45
else
60
68
elif [[ ${{ inputs.version }} == *"stable"* ]]; then
61
69
version=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'`
62
70
echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
63
- elif [[ ${{ inputs.version }} == "linked" ]]; then
64
- echo "tools-url=linked" >> $GITHUB_OUTPUT
65
- elif [[ ${{ inputs.version }} == "default" ]]; then
66
- echo "tools-url=" >> $GITHUB_OUTPUT
67
71
else
68
72
echo "::error::Unrecognized version specified!"
69
73
exit 1
You can’t perform that action at this time.
0 commit comments