Skip to content

Commit a77c583

Browse files
authored
Merge pull request #52 from umpire274/v0.2.0
Fixed the correct workflow
2 parents 8a28036 + cc59f05 commit a77c583

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Build and Upload Artifacts
22

33
on:
44
workflow_run:
5-
workflows: [ "Rust Build & Test" ]
6-
types: [ completed ]
5+
workflows: ["Rust Build & Test"]
6+
types: [completed]
77

88
jobs:
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:

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)