mirror of
https://github.com/actions/github-script.git
synced 2026-04-08 07:00:05 +00:00
Run from a script or a file
This commit is contained in:
parent
64af053a78
commit
35288c3418
3 changed files with 61 additions and 4 deletions
14
.github/workflows/integration.yml
vendored
14
.github/workflows/integration.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue