Skip to content

Commit 36b8be9

Browse files
committed
Update instructions and add comment.
1 parent fccb163 commit 36b8be9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Let's suppose you have a workflow with a job in it that at the end uploads an ar
66

77
## Usage
88

9-
> You need to specify `commit` or `pr` input.
9+
> If `commit` or `pr` is not specified then the artifact from the most recent run will be downloaded.
1010
1111
```yaml
1212
- name: Download artifact

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ async function main() {
7474
return workflow_run.head_sha == commit
7575
}
7676
else {
77+
// No PR or commit was specified just return the first one. The results appear to be sorted
78+
// so the most recent is first.
7779
return true
7880
}
7981
})

0 commit comments

Comments
 (0)