Add warn-on-failure

Some users might not want their workflow jobs to die just because an
artifact isn't available...
This commit is contained in:
Josh Soref 2024-01-30 14:58:20 -05:00
parent c3c8e4145a
commit bd6ef4177a
6 changed files with 77 additions and 9 deletions

View file

@ -82,6 +82,10 @@ For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
# If github-token is specified, this is the run that artifacts will be downloaded from.
# Optional. Default is ${{ github.run_id }}
run-id:
# Map failure result to an output instead of failing the job.
# Optional. Default is `false`
warn-on-failure:
```
### Outputs
@ -89,6 +93,7 @@ For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
| Name | Description | Example |
| - | - | - |
| `download-path` | Absolute path where the artifact(s) were downloaded | `/tmp/my/download/path` |
| `failure` | Failure message (if using `warn-on-failure`) | `Unable to download artifact(s): ...` |
## Examples