Skip to content

Commit 78bb090

Browse files
committed
hopefully fix the GHA job
1 parent ddc7e8d commit 78bb090

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
7979
outputs:
8080
new_version: ${{ steps.bump.outputs.new_version }}
81+
release_sha: ${{ steps.push.outputs.release_sha }}
8182

8283
steps:
8384
- name: Checkout repository
@@ -114,9 +115,11 @@ jobs:
114115
git commit -m "chore: bump version to v${{ steps.bump.outputs.new_version }} [skip ci]"
115116
116117
- name: Create and push tag
118+
id: push
117119
run: |
118120
git tag "v${{ steps.bump.outputs.new_version }}"
119121
git push origin master --follow-tags
122+
echo "release_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
120123
121124
build:
122125
name: Build Release Binaries
@@ -137,7 +140,7 @@ jobs:
137140
- name: Checkout repository
138141
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
139142
with:
140-
ref: v${{ needs.release.outputs.new_version }}
143+
ref: ${{ needs.release.outputs.release_sha }}
141144

142145
- name: Setup Rust toolchain
143146
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # stable
@@ -215,7 +218,7 @@ jobs:
215218
- name: Checkout repository
216219
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
217220
with:
218-
ref: v${{ needs.release.outputs.new_version }}
221+
ref: ${{ needs.release.outputs.release_sha }}
219222
fetch-depth: 0
220223

221224
- name: Download all artifacts

0 commit comments

Comments
 (0)