We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fccb163 commit 36b8be9Copy full SHA for 36b8be9
2 files changed
README.md
@@ -6,7 +6,7 @@ Let's suppose you have a workflow with a job in it that at the end uploads an ar
6
7
## Usage
8
9
-> You need to specify `commit` or `pr` input.
+> If `commit` or `pr` is not specified then the artifact from the most recent run will be downloaded.
10
11
```yaml
12
- name: Download artifact
main.js
@@ -74,6 +74,8 @@ async function main() {
74
return workflow_run.head_sha == commit
75
}
76
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.
79
return true
80
81
})
0 commit comments