fix version

This commit is contained in:
jona.klaess
2026-06-04 19:53:38 +02:00
parent 0c4ce62584
commit 063e4834d3

View File

@@ -19,11 +19,11 @@ jobs:
PREFIX="gitea.controller.bittehackmichnicht.de/${{ github.repository }}/ptp-chat-frontend" PREFIX="gitea.controller.bittehackmichnicht.de/${{ github.repository }}/ptp-chat-frontend"
if [ "${{ github.event_name }}" = "schedule" ]; then if [ "${{ github.event_name }}" = "schedule" ]; then
echo "Scheduled run detected, using date-based tag." echo "Scheduled run detected, using date-based tag."
echo "VERSION=${{ github.run_id }}" >> $GITHUB_OUTPUT echo "VERSION=1.0.0-${{ github.run_id }}" >> $GITHUB_OUTPUT
echo "TAG=$PREFIX:$VERSION" >> $GITHUB_OUTPUT echo "TAG=$PREFIX:$VERSION" >> $GITHUB_OUTPUT
echo "LATEST=true" >> $GITHUB_OUTPUT echo "LATEST=true" >> $GITHUB_OUTPUT
else else
echo "VERSION=alpha.${{ github.run_id }}" >> $GITHUB_OUTPUT echo "VERSION=1.0.0-alpha-${{ github.run_id }}" >> $GITHUB_OUTPUT
if [ ${{ github.event_name }} = "workflow_dispatch" ]; then if [ ${{ github.event_name }} = "workflow_dispatch" ]; then
echo "Manual run detected, also updating 'latest' tag." echo "Manual run detected, also updating 'latest' tag."
echo "LATEST=true" >> $GITHUB_OUTPUT echo "LATEST=true" >> $GITHUB_OUTPUT