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