Fix Gitea workflow: change trigger from main to master branch

This commit is contained in:
René Walther committed 2025-09-11 07:22:16 +02:00
1 parent b9185263ec
commit 67c0cb07be
1 file changed
+3 -3
+3 -3
View File
@@ -3,7 +3,7 @@ name: Build and Push Docker Image (Gitea)
on:
push:
branches:
- main
- master
workflow_dispatch:
inputs:
tag_suffix:
@@ -40,8 +40,8 @@ jobs:
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
echo "timestamp=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT
# Set tag suffix: -dev for main branch pushes, or use input for manual triggers
if [ "${{ github.event_name }}" = "push" ] && [ "${GITHUB_REF#refs/heads/}" = "main" ]; then
# Set tag suffix: -dev for master branch pushes, or use input for manual triggers
if [ "${{ github.event_name }}" = "push" ] && [ "${GITHUB_REF#refs/heads/}" = "master" ]; then
echo "tag_suffix=-dev" >> $GITHUB_OUTPUT
else
echo "tag_suffix=${{ inputs.tag_suffix }}" >> $GITHUB_OUTPUT