Skip to content

Commit 906f2f5

Browse files
author
Dave Bartolomeo
committed
Add repo
1 parent 631b8fe commit 906f2f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/actions/find-latest-bundle/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ runs:
1111
id: find-latest
1212
shell: pwsh
1313
run: |
14-
$Latest = gh release list --exclude-drafts --limit 1000 |
14+
$Latest = gh release list --repo github/codeql-action --exclude-drafts --limit 1000 |
1515
ForEach-Object { $C = $_ -split "`t"; return @{ type = $C[1]; tag = $C[2]; } } |
1616
Where-Object { $_.type -eq 'Latest' }
1717
1818
$Tag = $Latest.tag
19+
if ($Tag -eq '') {
20+
throw 'Failed to find latest bundle release.'
21+
}
22+
1923
Write-Output "Latest bundle tag is '${Tag}'."
2024
"url=https://github.com/github/codeql-action/releases/download/${Tag}/codeql-bundle-linux64.tar.gz" >> $env:GITHUB_OUTPUT
2125
env:

0 commit comments

Comments
 (0)