From 04edb8b456b544b54f3b71ec4c0d58f7086a0162 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 13:26:41 +1000 Subject: [PATCH] actions: Test 3 change numbering --- .gitea/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a01c675..77d2cff 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -24,10 +24,8 @@ jobs: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} tag=${tag//\//-} - tag_num=$(git rev-list --count HEAD) - echo "tag_num=$tag_num" - - tag_num=$(git rev-list ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} --count) + tag_num=${git log --oneline | wc -l} + echo "tag_num=$tag_num" if [[ "$tag" == "main" ]]; then tag="latest"