From b642cf726967529911b1e12b37d3bbf576c72b8d Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 13:37:24 +1000 Subject: [PATCH] actions: Try using the actions run variable --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b68e1fe..e46c248 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -24,7 +24,7 @@ jobs: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} tag=${tag//\//-} - tag_num=$(git log --oneline | wc -l) + tag_num=${GITHUB_RUN_NUMBER} echo "tag_num=$tag_num" if [[ "$tag" == "main" ]]; then