mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 21:40:59 -05:00
example-artifacts must run in a single workflow
otherwise the status will be success before all status are actually complete and create confusion
This commit is contained in:
parent
15a46373fb
commit
713a5d019d
3 changed files with 47 additions and 46 deletions
|
@ -1,22 +0,0 @@
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
upload:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: mkdir -p artifacts
|
|
||||||
|
|
||||||
- run: touch artifacts/ONE artifacts/TWO
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: many-artifacts
|
|
||||||
path: artifacts/
|
|
||||||
|
|
||||||
download:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
test -f many-artifacts/ONE
|
|
||||||
test -f many-artifacts/TWO
|
|
|
@ -1,24 +0,0 @@
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
upload:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: mkdir -p path/to/artifact
|
|
||||||
|
|
||||||
- run: echo hello > path/to/artifact/world.txt
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: my-artifact
|
|
||||||
path: path/to/artifact/world.txt
|
|
||||||
|
|
||||||
download:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: "! test -f world.txt"
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: my-artifact
|
|
||||||
|
|
||||||
- run: "test -f world.txt"
|
|
47
testdata/example-artifacts/.forgejo/workflows/test.yml
vendored
Normal file
47
testdata/example-artifacts/.forgejo/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
upload-many:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- run: mkdir -p artifacts
|
||||||
|
|
||||||
|
- run: touch artifacts/ONE artifacts/TWO
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: many-artifacts
|
||||||
|
path: artifacts/
|
||||||
|
|
||||||
|
download-many:
|
||||||
|
needs: [upload-many]
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
|
||||||
|
- 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: actions/upload-artifact@v3
|
||||||
|
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: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: my-artifact
|
||||||
|
|
||||||
|
- run: "test -f world.txt"
|
Loading…
Reference in a new issue