Skip to content

Commit af853c1

Browse files
committed
Fix YAML linting
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 9bcb6a3 commit af853c1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)