-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
303390d
commit bc20750
Showing
4 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,17 @@ Required inputs: | |
|
||
Optional inputs: | ||
|
||
- `args`: A comma-separated list of arguments to run the command with | ||
- `hide-warnings`: Whether to report warnings in the GitHub Actions logs | ||
- `args`: A comma-separated list of arguments with which to run the command | ||
- `hide-warnings`: Hide warnings in the GitHub Actions logs (defaults to `false`) | ||
- `fail`: Fail the step if an error is detected (defaults to `true`) | ||
- `file`: The file to in which to record the output | ||
|
||
Outputs: | ||
|
||
- `output`: The command output (stdout + stderr) | ||
- `output`: The full command output (stdout + stderr) | ||
- `stdout`: The result of stdout | ||
- `stderr`: The result of stderr | ||
- `exit-code`: The command's exit code | ||
- `duration`: The time the command took to run, in seconds | ||
|
||
``` | ||
|
@@ -28,10 +32,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Capture output | ||
uses: 'selfagency/[email protected].1' | ||
uses: 'selfagency/[email protected].2' | ||
with: | ||
cmd: yarn | ||
args: run,build,--verbose | ||
hide-warnings: true | ||
fail: false | ||
file: ${{ github.workspace }}/output.txt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters