File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Test
1+ name : Download
22
33on : push
44
55jobs :
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}}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments