Skip to content

Commit bc5c1fb

Browse files
committed
git-artifacts: avoid linter warning
The linter has a hard time recognizing `core.setOutput()`. However, every `github-script` step has a naturally-defined output: `result`, set to the return value of the script. Let's use that instead. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 63267f2 commit bc5c1fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/git-artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
pkg:
4646
runs-on: ${{ github.event.inputs.architecture == 'aarch64' && fromJSON('["Windows", "ARM64"]') || 'windows-latest' }}
4747
outputs:
48-
artifact_matrix: ${{steps.artifact-build-matrix.outputs.matrix}}
48+
artifact_matrix: ${{ steps.artifact-build-matrix.outputs.result }}
4949
msystem: ${{steps.configure-environment.outputs.MSYSTEM}}
5050
mingw_package_prefix: ${{steps.configure-environment.outputs.MINGW_PACKAGE_PREFIX}}
5151
sdk_repo_arch: ${{steps.configure-environment.outputs.SDK_REPO_ARCH}}
@@ -195,7 +195,7 @@ jobs:
195195
try {
196196
const output = createArtifactsMatrix(process.env.ARTIFACTS_TO_BUILD, process.env.ARCHITECTURE)
197197
core.info(`Will be using the following matrix: ${JSON.stringify(output)}`)
198-
core.setOutput('matrix', output)
198+
return output
199199
} catch (e) {
200200
core.setFailed(e.message)
201201
}

0 commit comments

Comments
 (0)