Fix #7 using proper path joining

This commit is contained in:
Tim Heuer
2020-01-21 08:59:16 -08:00
parent ddf9dac666
commit 6f59c66836
3 changed files with 14 additions and 2 deletions

View File

@@ -1,8 +1,10 @@
const core = require('@actions/core');
const fs = require('fs');
const path = require('path');
// get input parameter values from config
var fileName = process.env.RUNNER_TEMP + '/' + core.getInput('fileName');
var fileName = path.join(process.env.RUNNER_TEMP,core.getInput('fileName'));
var encodedString = core.getInput('encodedString');
// most @actions toolkit packages have async methods