artifacts/README.md

40 lines
772 B
Markdown
Raw Permalink Normal View History

2026-09-13 19:10:04 +02:00
# artifacts
Workflow artifact actions, built on `code.geekeey.de/actions/sdk/artifact`.
## push
Upload files as a workflow artifact.
```yaml
- uses: https://code.geekeey.de/actions/artifacts/push@1
with:
name: my-artifact
path: dist
pattern: |
**/*
```
## pull
Download and extract a workflow artifact.
```yaml
- uses: https://code.geekeey.de/actions/artifacts/pull@1
with:
name: my-artifact
path: .
```
To download from another run or repository, pass `repository`, `run-id` and a
token with read access to its actions:
```yaml
- uses: https://code.geekeey.de/actions/artifacts/pull@1
with:
name: my-artifact
path: .
repository: other-owner/other-repo
run-id: "123"
github-token: ${{ secrets.READ_TOKEN }}
```