Skip to content

Commit a708c3c

Browse files
authored
Fix the download-commit test to actually look for a commit (#330)
Previously, `github.event.workflow_run.head_sha` would expand to an empty string, when the workflow isn't run due to a workflow_run event (manually triggered or invoked by another workflow). Use `github.sha` instead of `github.event.workflow_run.head_sha`, for the commit hash that triggered the workflow.
1 parent 19f6be5 commit a708c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/download.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
workflow: upload.yml
8585
name: artifact
8686
path: artifact
87-
commit: ${{ github.event.workflow_run.head_sha }}
87+
commit: ${{ github.sha }}
8888
- name: Test
8989
run: cat artifact/sha | grep $GITHUB_SHA
9090
download-multiple:

0 commit comments

Comments
 (0)