actions: Test 3 change numbering
This commit is contained in:
parent
45c1ea3557
commit
04edb8b456
@ -24,11 +24,9 @@ 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 rev-list --count HEAD)
|
tag_num=${git log --oneline | wc -l}
|
||||||
echo "tag_num=$tag_num"
|
echo "tag_num=$tag_num"
|
||||||
|
|
||||||
tag_num=$(git rev-list ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} --count)
|
|
||||||
|
|
||||||
if [[ "$tag" == "main" ]]; then
|
if [[ "$tag" == "main" ]]; then
|
||||||
tag="latest"
|
tag="latest"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user