Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fleming authored Oct 17, 2024
1 parent 1e11905 commit 8ad1464
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ jobs:
- name: Get Tags
run: |
git fetch --tags --force --quiet
#tags=$(git tag -l $GITHUB_REF_NAME* | tail -1 | cut -d "-" -f2-)
tags=$(git tag -l nothing* | tail -1 | cut -d "-" -f2-)
if [ ! -z "$tags" ];
tag=$(git tag -l $GITHUB_REF_NAME* | tail -1 | cut -d "-" -f2-)
#tag=$(git tag -l nothing* | tail -1 | cut -d "-" -f2-)
if [ ! -z "$tag" ];
then
echo "$tags"
echo "$tag"
build_num=$(echo "${tag##*.}")
echo "$build_num"
build_num=$((build_num+1))
echo "$build_num"
new_tag=$GITHUB_REF_NAME.$build_num
echo "$new_tag"
else
echo "tag not found"
build_num=1
new_tag=$GITHUB_REF_NAME.$build_num
echo "$new_tag"
fi

0 comments on commit 8ad1464

Please sign in to comment.