Skip to content

Commit

Permalink
Merge pull request #51 from dawidd6/dawidd6-patch-1
Browse files Browse the repository at this point in the history
main: test branch
  • Loading branch information
dawidd6 authored Feb 19, 2021
2 parents e8a269d + 9be9b11 commit bb4bdd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
download-branch:
runs-on: ubuntu-latest
needs: wait
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -41,6 +42,22 @@ jobs:
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-run_id:
runs-on: ubuntu-latest
needs: wait
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function main() {
}

if (!runID) {
const endpoint = "GET /repos/:owner/:repo/actions/workflows/:id/runs?status=:status"
const endpoint = "GET /repos/:owner/:repo/actions/workflows/:id/runs?status=:status&branch=:branch"
const params = {
owner: owner,
repo: repo,
Expand Down

0 comments on commit bb4bdd3

Please sign in to comment.