Skip to content

Commit 4c59709

Browse files
committed
Workflow: Add workflow id
1 parent 3ceef09 commit 4c59709

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,16 @@ jobs:
6565
}
6666
else {
6767
const latestArtifact = filteredArtifacts.sort((a, b) => new Date(b.created_at) - new Date(a.created_at))[0];
68-
console.log(`Success! Found the latest artifact with name #{artifactName}`);
68+
console.log(`Success! Found the latest artifact with name ${artifactName}, with artifact id ${latestArtifact.id} | workflow id ${latestArtifact.workflow_run.id}`);
6969
core.setOutput("artifact_id", latestArtifact.id);
70+
core.setOutput("run_id", latestArtifact.workflow_run.id);
7071
}
7172
result-encoding: string
7273
- name: Download the artifact for main
7374
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
7475
with:
7576
artifact-ids: ${{ steps.fetch-artifact-id.outputs.artifact_id }}
77+
run-id: ${{ steps.fetch-artifact-id.outputs.run_id }}
7678
path: ./main-report
7779
- name: Move the main report artifact to same directory as pr report
7880
run: |

0 commit comments

Comments
 (0)