1
1
Fork 0
mirror of https://github.com/go-shiori/shiori.git synced 2025-01-19 06:20:08 +08:00

fix(ci): use correct tag names on version bump ()

This commit is contained in:
Felipe Martin 2024-03-30 08:44:02 +01:00 committed by GitHub
parent 9c7483fd09
commit 47e7259714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,20 +29,20 @@ jobs:
run: |
REPO=ghcr.io/${{ github.repository }}
TAG=$(git describe --tags)
if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ]]
then
TAG2="dev"
else
TAG2="latest"
fi
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:latest" >> $GITHUB_ENV
- name: Prepare version push tags
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
run: |
REPO=ghcr.io/${{ github.repository }}
TAG=$(git describe --tags)
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:dev" >> $GITHUB_ENV
if [[ "$TAG" == *"rc"* ]]
then
TAG2="dev"
else
TAG2="latest"
fi
echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV
- name: Prepare pull request tags
if: github.event_name == 'pull_request'