Skip to content

Commit 00263f8

Browse files
committed
workflows: split again
1 parent 52fffcb commit 00263f8

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
1-
name: Test
1+
name: Download
22

33
on: push
44

55
jobs:
6-
upload:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v2
11-
- name: Upload
12-
uses: actions/upload-artifact@v1
13-
with:
14-
name: artifact
15-
path: ./
166
download:
17-
needs: upload
187
strategy:
198
matrix:
209
os:
2110
- ubuntu-latest
2211
- macos-latest
2312
runs-on: ${{matrix.os}}
2413
steps:
14+
- name: Wait
15+
run: |
16+
sleep 30s
2517
- name: Checkout
2618
uses: actions/checkout@v2
2719
- name: Download
2820
uses: ./
2921
with:
30-
workflow: test.yml
22+
workflow: upload.yml
3123
name: artifact
3224
path: artifact
3325
- name: Test
3426
run: |
35-
git -C artifact rev-parse HEAD | grep ${{github.sha}}
27+
cat artifact/sha | grep ${{github.sha}}

.github/workflows/upload.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Upload
2+
3+
on: push
4+
5+
jobs:
6+
upload:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Dump
10+
run: |
11+
mkdir artifact
12+
echo ${{github.sha}} > artifact/sha
13+
- name: Upload
14+
uses: actions/upload-artifact@v1
15+
with:
16+
name: artifact
17+
path: artifact

0 commit comments

Comments
 (0)