feat: artifact push and pull actions
All checks were successful
default / test artifact actions (push) Successful in 26s
All checks were successful
default / test artifact actions (push) Successful in 26s
This commit is contained in:
commit
ae8d20e174
15 changed files with 1319 additions and 0 deletions
40
README.md
Normal file
40
README.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# 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 }}
|
||||
```
|
||||
Loading…
Reference in a new issue