Skip to content

Commit 82019f3

Browse files
authored
fix: new git command for tags thats more better (#14)
1 parent 5d4a490 commit 82019f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/autorelease.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121
with:
22-
ref: "ref/heads/main"
2322
fetch-tags: "true"
2423
fetch-depth: "0"
2524
- name: Verify new release needed
@@ -29,7 +28,7 @@ jobs:
2928
CARGO_VER="v$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "zenith-builder-example") | .version' -r)"
3029
echo "$CARGO_VER"
3130
# get latest version from git tags
32-
GIT_VER=$(git describe --tags --abbrev=0)
31+
GIT_VER=$(git describe --tags $(git rev-list --tags --max-count=1))
3332
echo "$GIT_VER"
3433
if [ "$CARGO_VER" == "$GIT_VER" ]; then
3534
echo "# No new release needed" >> $GITHUB_STEP_SUMMARY

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ tracing-subscriber = "0.3.18"
4747

4848
async-trait = "0.1.80"
4949
oauth2 = "4.4.2"
50+

0 commit comments

Comments
 (0)