Skip to content

Commit fc260c1

Browse files
data-douserCopilot
andauthored
Update .github/workflows/update-codeql.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Nathan Randall <70299490+data-douser@users.noreply.github.com>
1 parent 4b5a2fb commit fc260c1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/update-codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
latest_tag=$(gh release list --repo github/codeql-cli-binaries --json 'tagName,isLatest' --jq '.[] | select(.isLatest == true) | .tagName')
4747
latest_clean="${latest_tag#v}"
4848
49+
if [ -z "${latest_tag}" ]; then
50+
echo "❌ ERROR: Failed to determine latest CodeQL CLI release. 'gh release list' returned no results or no release is marked as latest." >&2
51+
echo "update_needed=false" >> $GITHUB_OUTPUT
52+
exit 1
53+
fi
4954
echo "Current CodeQL CLI version: ${current_version}"
5055
echo "Latest CodeQL CLI version: ${latest_clean}"
5156

0 commit comments

Comments
 (0)