Skip to content

Commit

Permalink
fix: fix new version
Browse files Browse the repository at this point in the history
  • Loading branch information
kristof-mattei committed Nov 2, 2023
1 parent f75d851 commit ef697ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ jobs:
run: |
VERSION="$(cog bump --auto --dry-run || true)"
if [[ -z $VERSION ]]; then
if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "New version: ${VERSION}"
else
VERSION="$(git tag --points-at "$(git rev-list --tags --max-count=1)" | sort --reverse | head --lines 1)"
echo "No version generated, defaulting to latest git tag: ${VERSION}"
else
echo "New version: ${VERSION}"
fi
# remove v
Expand Down
3 changes: 3 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"type": "cargo",
"command": "test",
"args": [],
"env": {
"RUSTFLAGS": "-Wclippy::all -Wclippy::pedantic -Wclippy::cargo -Wwarnings"
},
"problemMatcher": ["$rustc"],
"group": "test",
"label": "Rust: cargo test"
Expand Down

0 comments on commit ef697ab

Please sign in to comment.