-
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
098f407
commit 303390d
Showing
4 changed files
with
23 additions
and
8 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 |
---|---|---|
|
@@ -4,6 +4,21 @@ Capture the output (and duration) of a command as a GitHub Actions `output` or f | |
|
||
## How to use this Action | ||
|
||
Required inputs: | ||
|
||
- `cmd`: The Bash command you want to run | ||
|
||
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 | ||
- `file`: The file to in which to record the output | ||
|
||
Outputs: | ||
|
||
- `output`: The command output (stdout + stderr) | ||
- `duration`: The time the command took to run, in seconds | ||
|
||
``` | ||
name: Capture output | ||
on: | ||
|
@@ -13,10 +28,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Capture output | ||
uses: 'selfagency/[email protected].0' | ||
uses: 'selfagency/[email protected].1' | ||
with: | ||
cmd: yarn | ||
args: run,build,--verbose | ||
hide-warnings: true | ||
file: '${{ github.workspace }}/output.txt' | ||
command: 'yarn' | ||
args: 'run,build,--verbose' | ||
``` | ||
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