actions: Try using the actions run variable
All checks were successful
Build Docker / Build Master (push) Successful in 24s
Build Docker / Build Bot (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2023-08-25 13:37:24 +10:00
parent 3e3c2fe61e
commit b642cf7269
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -24,7 +24,7 @@ jobs:
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
tag=${tag//\//-} tag=${tag//\//-}
tag_num=$(git log --oneline | wc -l) tag_num=${GITHUB_RUN_NUMBER}
echo "tag_num=$tag_num" echo "tag_num=$tag_num"
if [[ "$tag" == "main" ]]; then if [[ "$tag" == "main" ]]; then