Skip to content

Commit

Permalink
Merge pull request #6 from softwareforgood/add-README.md
Browse files Browse the repository at this point in the history
Add README.md
  • Loading branch information
wwahammy authored Jun 2, 2024
2 parents 7fca6d7 + 76fde85 commit 4b4cafc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Check Artifact v4 Existence
====

A composite Github Action inspired by the very awesome [Check artifact exists](https://github.com/xSAVIKx/artifact-exists-action).

Checks if an artifact with a given name, uploaded with actions/upload-artifact@v4, exists. Only works with the actions/upload-artifact v4 and later, not versions v1-v3.

## Inputs

- **name (required)** - Name of the artifact to check

## Outputs

- **exists** - Whether the artifact exists and could be downloaded. `true` if it the artifact was downloaded, `false` it couldn't be downloaded. It could also be `null` if something in the composite workflow failed and it never couldn't got to the end, if the `download-artifact` call was skipped
or something else strange happened.

## Example usage

```yaml
- uses: softwareforgood/check-artifact-v4-existence@v0
with:
name: "example-artifact"
```

0 comments on commit 4b4cafc

Please sign in to comment.