diff --git a/.github/actions/prepare-test/action.yml b/.github/actions/prepare-test/action.yml index 99e2bdf476..690f91770b 100644 --- a/.github/actions/prepare-test/action.yml +++ b/.github/actions/prepare-test/action.yml @@ -2,7 +2,7 @@ name: "Prepare test" description: Performs some preparation to run tests inputs: version: - description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'." + description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z" required: true use-all-platform-bundle: description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL" @@ -32,6 +32,14 @@ runs: run: | set -e # Fail this Action if `gh release list` fails. + if [[ ${{ inputs.version }} == "linked" ]]; then + echo "tools-url=linked" >> "$GITHUB_OUTPUT" + exit 0 + elif [[ ${{ inputs.version }} == "default" ]]; then + echo "tools-url=" >> "$GITHUB_OUTPUT" + exit 0 + fi + if [[ ${{ inputs.version }} == "nightly-latest" ]]; then extension="tar.zst" else @@ -56,14 +64,10 @@ runs: echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/$artifact_name" >> $GITHUB_OUTPUT elif [[ ${{ inputs.version }} == *"nightly"* ]]; then version=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'` - echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version-manual/$artifact_name" >> $GITHUB_OUTPUT + echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT elif [[ ${{ inputs.version }} == *"stable"* ]]; then version=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'` echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT - elif [[ ${{ inputs.version }} == "linked" ]]; then - echo "tools-url=linked" >> $GITHUB_OUTPUT - elif [[ ${{ inputs.version }} == "default" ]]; then - echo "tools-url=" >> $GITHUB_OUTPUT else echo "::error::Unrecognized version specified!" exit 1 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy