File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ jobs:
4040 id : check-version
4141 env :
4242 GH_TOKEN : ${{ github.token }}
43- TARGET_VERSION : ${{ inputs.target_version }}
43+ TARGET_VERSION : ${{ github.event_name == 'workflow_dispatch' && github.event. inputs.target_version || '' }}
4444 run : |
4545 echo "Checking latest CodeQL CLI version..."
4646
4747 # Read current version from .codeql-version (stores vX.Y.Z)
4848 current_version_raw=$(cat .codeql-version | tr -d '[:space:]')
4949 current_version="${current_version_raw#v}"
5050
51+ # Trim whitespace from target version input
52+ TARGET_VERSION=$(echo "${TARGET_VERSION}" | tr -d '[:space:]')
53+
5154 if [ -n "${TARGET_VERSION}" ]; then
5255 # Use the manually specified target version
5356 latest_clean="${TARGET_VERSION#v}"
You can’t perform that action at this time.
0 commit comments