Refs: https://code.forgejo.org/forgejo/end-to-end/issues/144
This reverts commit 191976a836
.
47 lines
1,015 B
YAML
47 lines
1,015 B
YAML
on: [push]
|
|
jobs:
|
|
upload-many:
|
|
runs-on: docker
|
|
steps:
|
|
- run: mkdir -p artifacts
|
|
|
|
- run: touch artifacts/ONE artifacts/TWO
|
|
|
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: many-artifacts
|
|
path: artifacts/
|
|
|
|
download-many:
|
|
needs: [upload-many]
|
|
runs-on: docker
|
|
steps:
|
|
- uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
|
|
|
- run: |
|
|
test -f many-artifacts/ONE
|
|
test -f many-artifacts/TWO
|
|
|
|
upload-one:
|
|
runs-on: docker
|
|
steps:
|
|
- run: mkdir -p path/to/artifact
|
|
|
|
- run: echo hello > path/to/artifact/world.txt
|
|
|
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: my-artifact
|
|
path: path/to/artifact/world.txt
|
|
|
|
download-one:
|
|
needs: [upload-one]
|
|
runs-on: docker
|
|
steps:
|
|
- run: "! test -f world.txt"
|
|
|
|
- uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
|
with:
|
|
name: my-artifact
|
|
|
|
- run: "test -f world.txt"
|