File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ outputs:
93
93
description : JSON array with details about found artifacts
94
94
artifact-build-commit :
95
95
description : The commit related to the artifact that was found
96
+ artifact-build-branch :
97
+ description : The branch related to the artifact that was found
96
98
runs :
97
99
using : node20
98
100
main : main.js
Original file line number Diff line number Diff line change @@ -192,7 +192,10 @@ async function main() {
192
192
core . setOutput ( "artifacts" , artifacts )
193
193
194
194
const artifactBuildCommit = artifacts [ 0 ] . workflow_run . head_sha ;
195
- core . setOutput ( "artifact-build-commit" , artifactBuildCommit )
195
+ core . setOutput ( "artifact-build-commit" , artifactBuildCommit ) ;
196
+
197
+ const artifactBuildBranch = artifacts [ 0 ] . workflow_run . head_branch ;
198
+ core . setOutput ( "artifact-build-branch" , artifactBuildBranch ) ;
196
199
197
200
if ( dryRun ) {
198
201
if ( artifacts . length == 0 ) {
@@ -219,7 +222,7 @@ async function main() {
219
222
}
220
223
221
224
core . setOutput ( "found_artifact" , true )
222
-
225
+
223
226
for ( const artifact of artifacts ) {
224
227
core . info ( `==> Artifact: ${ artifact . id } ` )
225
228
@@ -274,7 +277,7 @@ async function main() {
274
277
275
278
function setExitMessage ( ifNoArtifactFound , message ) {
276
279
core . setOutput ( "found_artifact" , false )
277
-
280
+
278
281
switch ( ifNoArtifactFound ) {
279
282
case "fail" :
280
283
core . setFailed ( message )
You can’t perform that action at this time.
0 commit comments