Skip to content

Commit 3657da1

Browse files
committed
Move yq version into env var and add comment
1 parent 605d404 commit 3657da1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/__build-mode-autobuild.yml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/sync.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,14 @@ def writeHeader(checkStream):
230230
'name': 'Install yq',
231231
'if': "runner.os == 'Windows'",
232232
'env': {
233-
'YQ_PATH': '${{ runner.temp }}/yq'
233+
'YQ_PATH': '${{ runner.temp }}/yq',
234+
# This is essentially an arbitrary version of `yq`, which happened to be the one that
235+
# `choco` fetched when we moved away from using that here.
236+
# See https://github.com/github/codeql-action/pull/3423
237+
'YQ_VERSION': 'v4.50.1'
234238
},
235239
'run': LiteralScalarString(
236-
'gh release download --repo mikefarah/yq --pattern "yq_windows_amd64.exe" v4.50.1 -O "$YQ_PATH/yq.exe"\n'
240+
'gh release download --repo mikefarah/yq --pattern "yq_windows_amd64.exe" "$YQ_VERSION" -O "$YQ_PATH/yq.exe"\n'
237241
'echo "$YQ_PATH" >> "$GITHUB_PATH"'
238242
),
239243
})

0 commit comments

Comments
 (0)