build(deps): bump filesize from 6.3.0 to 10.1.0 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
wait: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait | |
run: sleep 60 | |
download-latest: | |
runs-on: ubuntu-latest | |
needs: wait | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download | |
uses: ./ | |
with: | |
workflow: upload.yml | |
name: artifact | |
path: artifact | |
- name: Test | |
run: cat artifact/sha | grep $GITHUB_SHA | |
download-branch: | |
runs-on: ubuntu-latest | |
needs: wait | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download | |
uses: ./ | |
with: | |
workflow: upload.yml | |
name: artifact | |
path: artifact | |
branch: master | |
- name: Test | |
run: cat artifact/sha | grep $GITHUB_SHA | |
download-pr: | |
runs-on: ubuntu-latest | |
needs: wait | |
if: github.ref != 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download | |
uses: ./ | |
with: | |
workflow: upload.yml | |
name: artifact | |
path: artifact | |
pr: ${{github.event.pull_request.number}} | |
- name: Test | |
run: cat artifact/sha | grep $GITHUB_SHA | |
download-multiple: | |
runs-on: ubuntu-latest | |
needs: wait | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download | |
uses: ./ | |
with: | |
workflow: upload.yml | |
- name: Test | |
run: | | |
cat artifact1/sha1 | grep $GITHUB_SHA | |
cat artifact2/sha2 | grep $GITHUB_SHA | |
download-conclusion: | |
runs-on: ubuntu-latest | |
needs: wait | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download | |
uses: ./ | |
with: | |
workflow: upload.yml | |
name: artifact | |
path: artifact | |
workflow_conclusion: '' | |
- name: Test | |
run: cat artifact/sha | grep $GITHUB_SHA |