actions: Test 3 change numbering
Some checks failed
Build Docker / Build Master (push) Failing after 21s
Build Docker / Build Bot (push) Successful in 27s

This commit is contained in:
Nathan Woodburn 2023-08-25 13:26:41 +10:00
parent 45c1ea3557
commit 04edb8b456
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -24,11 +24,9 @@ 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)
tag_num=${git log --oneline | wc -l}
echo "tag_num=$tag_num"
tag_num=$(git rev-list ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} --count)
if [[ "$tag" == "main" ]]; then
tag="latest"
else