File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ name: Build and Upload Artifacts
22
33on :
44 workflow_run :
5- workflows : [ "Rust Build & Test" ]
6- types : [ completed ]
5+ workflows : ["Rust Build & Test"]
6+ types : [completed]
77
88jobs :
99 build :
10- if : ${{ github.event.workflow_run.conclusion == 'success' }}
10+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 matrix :
Original file line number Diff line number Diff line change @@ -14,11 +14,18 @@ jobs:
1414 - name : Checkout repository
1515 uses : actions/checkout@v4
1616
17+ - name : DEBUG — Info evento e run
18+ run : |
19+ echo "Workflow triggering this run:"
20+ echo "Workflow name: ${{ github.event.workflow.name }}"
21+ echo "Workflow run ID: ${{ github.event.workflow_run.id }}"
22+
1723 - name : Download release artifacts
1824 uses : actions/download-artifact@v4
1925 with :
2026 name : release_artifacts
2127 path : release_artifacts
28+ run-id : ' ${{ github.event.workflow_run.id }}'
2229
2330 - name : Debug — lista file scaricati
2431 shell : bash
You can’t perform that action at this time.
0 commit comments