Skip to content

Commit

Permalink
workflows: wait in separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Jul 25, 2020
1 parent d0de76b commit b9c78ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ name: Download
on: push

jobs:
download:
wait:
runs-on: ubuntu-latest
steps:
- name: Wait
run: |
sleep 60s
run: sleep 60s
download:
runs-on: ubuntu-latest
needs: wait
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download
Expand All @@ -18,11 +21,10 @@ jobs:
name: artifact
path: artifact
- name: Test
run: |
cat artifact/sha | grep ${{github.sha}}
run: cat artifact/sha | grep ${{github.sha}}
download-branch:
runs-on: ubuntu-latest
needs: download
needs: wait
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -34,8 +36,7 @@ jobs:
path: artifact
branch: master
- name: Test
run: |
cat artifact/sha | grep ${{github.sha}}
run: cat artifact/sha | grep ${{github.sha}}
download-repo:
runs-on: ubuntu-latest
steps:
Expand All @@ -50,5 +51,4 @@ jobs:
path: bottles
pr: 58588
- name: Test
run: |
ls bottles/gofish--0.13.0*.bottle.*
run: ls bottles/gofish--0.13.0*.bottle.*

0 comments on commit b9c78ef

Please sign in to comment.