mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-22 06:28:25 +02:00
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:
parent
c3c8e4145a
commit
bd6ef4177a
6 changed files with 77 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue