File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ outputs:
91
91
description : Boolean output which is true if the artifact was found and false otherwise
92
92
artifacts :
93
93
description : JSON array with details about found artifacts
94
+ artifact-build-commit :
95
+ description : The commit related to the artifact that was found
94
96
runs :
95
97
using : node20
96
98
main : main.js
Original file line number Diff line number Diff line change @@ -191,6 +191,9 @@ async function main() {
191
191
192
192
core . setOutput ( "artifacts" , artifacts )
193
193
194
+ const artifactBuildCommit = artifacts [ 0 ] . workflow_run . head_sha ;
195
+ core . setOutput ( "artifact-build-commit" , artifactBuildCommit )
196
+
194
197
if ( dryRun ) {
195
198
if ( artifacts . length == 0 ) {
196
199
core . setOutput ( "dry_run" , false )
You can’t perform that action at this time.
0 commit comments