diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76805cf..e08f9b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,30 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: ./ + with: + macos: echo "Hi from macos" + linux: | + echo "Hi from linux" + echo "Hi from linux second line" + windows: echo "Hi from windows" + + - uses: ./ + with: + macos: echo "test2" + linux: echo "test2" + windows: echo "test2" + - uses: knicknic/os-specific-run@master with: macos: echo "Hi from macos" linux: | echo "Hi from linux" echo "Hi from linux second line" - windows: echo "Hi from windows" \ No newline at end of file + windows: echo "Hi from windows" + + - uses: knicknic/os-specific-run@master + with: + macos: echo "test2" + linux: echo "test2" + windows: echo "test2" \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 80d60c0..2450592 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1631,7 +1631,10 @@ async function body() { let command = ''; let unformattedShell = ''; - let file = path.join(process.env.GITHUB_WORKSPACE, uuidv4()) + let tmpPath = path.join(path.sep, 'tmp', 'knicknic', 'os-specific-run') + await fs.promises.mkdir(tmpPath, { recursive: true }); + + let file = path.join(tmpPath, uuidv4()) // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell diff --git a/index.js b/index.js index be06090..268999b 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,10 @@ async function body() { let command = ''; let unformattedShell = ''; - let file = path.join(process.env.GITHUB_WORKSPACE, uuidv4()) + let tmpPath = path.join(path.sep, 'tmp', 'knicknic', 'os-specific-run') + await fs.promises.mkdir(tmpPath, { recursive: true }); + + let file = path.join(tmpPath, uuidv4()) // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell