From d4de4441791fcab203d7b3dc6d94d70deeafc387 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Sat, 14 Dec 2019 16:13:00 -0800 Subject: [PATCH] Attempting fix to temp environment var --- .github/workflows/test.yml | 2 +- dist/index.js | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4591117..5d515f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,4 +24,4 @@ jobs: uses: actions/upload-artifact@master with: name: 'final-file.txt' - path: 'myTemporaryFile.txt' \ No newline at end of file + path: ${{ steps.write_file.outputs.filePath }} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 585ab4e..f2b7e6a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -57,7 +57,7 @@ const core = __webpack_require__(470); const fs = __webpack_require__(747); // get input parameter values from config -var fileName = process.env['TEMP'] + '\\' + core.getInput('fileName'); +var fileName = process.env.TEMP + '\\' + core.getInput('fileName'); var encodedString = core.getInput('encodedString'); // most @actions toolkit packages have async methods diff --git a/index.js b/index.js index 1ea2148..3d7f093 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ const core = require('@actions/core'); const fs = require('fs'); // get input parameter values from config -var fileName = process.env['TEMP'] + '\\' + core.getInput('fileName'); +var fileName = process.env.TEMP + '\\' + core.getInput('fileName'); var encodedString = core.getInput('encodedString'); // most @actions toolkit packages have async methods