File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - " rust/chainlink-data-streams-report-v*"
77 workflow_dispatch : # Keeping manual trigger as fallback
8+ inputs :
9+ version :
10+ description : " Version to publish (e.g., 0.0.1)"
11+ required : true
812
913jobs :
1014 publish :
2125 - name : Verify tag matches version
2226 run : |
2327 VERSION=$(grep '^version = "' rust/crates/report/Cargo.toml | cut -d '"' -f2)
24- TAG_VERSION=${GITHUB_REF#refs/tags/rust/chainlink-data-streams-report-v}
28+ if [[ "${{ github.event_name }}" == "push" ]]; then
29+ TAG_VERSION=${GITHUB_REF#refs/tags/rust/chainlink-data-streams-report-v}
30+ else
31+ TAG_VERSION=${{ github.event.inputs.version }}
32+ fi
2533 if [ "$VERSION" != "$TAG_VERSION" ]; then
26- echo "Version mismatch: Cargo.toml ($VERSION) != tag ($TAG_VERSION)"
34+ echo "Version mismatch: Cargo.toml ($VERSION) != expected version ($TAG_VERSION)"
2735 exit 1
2836 fi
2937
Original file line number Diff line number Diff line change 55 tags :
66 - " rust/chainlink-data-streams-sdk-v*"
77 workflow_dispatch : # Keeping manual trigger as fallback
8+ inputs :
9+ version :
10+ description : " Version to publish (e.g., 0.0.1)"
11+ required : true
812
913jobs :
1014 publish :
2125 - name : Verify tag matches version
2226 run : |
2327 VERSION=$(grep '^version = "' rust/crates/sdk/Cargo.toml | cut -d '"' -f2)
24- TAG_VERSION=${GITHUB_REF#refs/tags/rust/chainlink-data-streams-sdk-v}
28+ if [[ "${{ github.event_name }}" == "push" ]]; then
29+ TAG_VERSION=${GITHUB_REF#refs/tags/rust/chainlink-data-streams-sdk-v}
30+ else
31+ TAG_VERSION=${{ github.event.inputs.version }}
32+ fi
2533 if [ "$VERSION" != "$TAG_VERSION" ]; then
26- echo "Version mismatch: Cargo.toml ($VERSION) != tag ($TAG_VERSION)"
34+ echo "Version mismatch: Cargo.toml ($VERSION) != expected version ($TAG_VERSION)"
2735 exit 1
2836 fi
2937
You can’t perform that action at this time.
0 commit comments