CI: bootstraps: append +apt-android-5 after revision instead

This commit is contained in:
Henrik Grimler 2022-04-28 22:00:22 +02:00
parent 114bcec336
commit e97b979f89
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 2 additions and 2 deletions

View File

@ -47,14 +47,14 @@ jobs:
- name: Create new tag
id: get_tag
run: |
new_tag="bootstrap-$(date "+%Y.%m.%d")+apt-android-5"
new_tag="bootstrap-$(date "+%Y.%m.%d")"
existing_tag_revision=$(git tag | grep "$new_tag" | sort -r | head -n 1 | cut -d- -f3 | cut -dr -f2)
if [ -n "$existing_tag_revision" ]; then
tag_rev=$((existing_tag_revision + 1))
else
tag_rev=1
fi
new_tag="${new_tag}-r${tag_rev}"
new_tag="${new_tag}-r${tag_rev}+apt-android-5"
git tag "$new_tag"
git push --tags
echo "::set-output name=tag_name::$new_tag"