File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -326,9 +326,24 @@ jobs:
326326 with :
327327 sccache : s3
328328 - uses : actions/checkout@v6
329+ with :
330+ fetch-depth : 1
331+ fetch-tags : true
329332 - uses : ./.github/actions/setup-rust
330333 with :
331334 repo-token : ${{ secrets.GITHUB_TOKEN }}
335+
336+ # We have to set the correct Cargo.toml versions so semver checks uses the previous release.
337+ - name : Latest Tag
338+ id : latest-tag
339+ run : |
340+ LATEST_TAG=$(git describe --tags --abbrev=0)
341+ echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT
342+ - name : Cargo Set Version
343+ run : |
344+ cargo install cargo-edit
345+ cargo set-version --workspace ${{ steps.latest-tag.outputs.tag }}
346+
332347 - name : Check semver
333348 uses : obi1kenobi/cargo-semver-checks-action@v2
334349
You can’t perform that action at this time.
0 commit comments