Skip to content

Commit 4bde2c0

Browse files
committed
Set the default output to the path of the SDK
Every GitHub Action implicitly has a default output that can be accessed in GitHub workflows via `${{ steps.<id>.outputs.result }}`. Let's use this feature to return the path where the SDK was installed. Previously, contortions such as `bash -c "$(cygpath -aw /)"` had to be used to find out where the SDK is located, and this change will make those contortions unnecessary. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent dbc13f2 commit 4bde2c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ async function run(): Promise<void> {
5151
)
5252
const outputDirectory =
5353
core.getInput('path') || `${getDriveLetterPrefix()}${artifactName}`
54+
core.setOutput('result', outputDirectory)
55+
5456
let useCache: boolean
5557
switch (core.getInput('cache')) {
5658
case 'true':

0 commit comments

Comments
 (0)