Skip to content

Commit 5b6984e

Browse files
committed
Assert that Windows downloads gzip
1 parent eefb943 commit 5b6984e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/__zstd-bundle.yml

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/zstd-bundle.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ versions:
55
operatingSystems:
66
- macos
77
- ubuntu
8+
- windows
89
env:
910
CODEQL_ACTION_ZSTD_BUNDLE: true
1011
steps:
@@ -58,8 +59,10 @@ steps:
5859
const toolsUrl = downloadTelemetryNotifications[0].properties.attributes.toolsUrl;
5960
console.log(`Found tools URL: ${toolsUrl}`);
6061
61-
if (!toolsUrl.endsWith('.tar.zst')) {
62+
const expectedExtension = process.env['RUNNER_OS'] === 'Windows' ? '.tar.gz' : '.tar.zst';
63+
64+
if (!toolsUrl.endsWith(expectedExtension)) {
6265
core.setFailed(
63-
`Expected the tools URL to be a .tar.zst file, but found ${toolsUrl}.`
66+
`Expected the tools URL to be a ${expectedExtension} file, but found ${toolsUrl}.`
6467
);
6568
}

0 commit comments

Comments
 (0)