Run from a script or a file

This commit is contained in:
Jonathan Clem 2020-05-18 11:50:54 -04:00
parent 64af053a78
commit 35288c3418
No known key found for this signature in database
GPG key ID: B3662C4A8F843179
3 changed files with 61 additions and 4 deletions

View file

@ -16,13 +16,23 @@ jobs:
if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then
exit 1
fi
- id: file-output-set
- id: file-relative
uses: actions/github-script@run-file
with:
file: __test__/test-output.js
result-encoding: string
input-value: output
- run: |
if [[ "${{steps.file-output-set.outputs.result}}" != "output" ]]; then
if [[ "${{steps.file-relative.outputs.result}}" != "output" ]]; then
exit 1
fi
- id: file-absolute
uses: actions/github-script@run-file
with:
file: ${{github.workspace}}/__test__/test-output.js
result-encoding: string
input-value: output
- run: |
if [[ "${{steps.file-absolute.outputs.result}}" != "output" ]]; then
exit 1
fi