Fix Gitea workflow: change trigger from main to master branch
This commit is contained in:
1 parent
b9185263ec
commit
67c0cb07be
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user