From 8a0867242311e31d65b3614546a960c34620aeb1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 5 Apr 2025 21:27:50 +0000 Subject: [PATCH] workflow_tag_fix (#33) Reviewed-on: https://git.kundeng.us/phoenix/icarus_models/pulls/33 Co-authored-by: phoenix Co-committed-by: phoenix --- .gitea/workflows/tag_release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml index b4106cc..1f3e199 100644 --- a/.gitea/workflows/tag_release.yaml +++ b/.gitea/workflows/tag_release.yaml @@ -42,6 +42,12 @@ jobs: echo "Printing version" echo "Version: ${{ steps.version.outputs.project_tag_release }}" + - name: Check Branch + if: github.ref != 'refs/heads/main' || github.ref != 'refs/heads/devel' # Replace 'main' with your required branch + run: | + echo "::error::Release can only be created from the 'main' branch." + exit 1 + - name: Create GitHub Release uses: actions/create-release@v1 env: