Guard deploy workflow against running on the bare template repo

This commit is contained in:
Lumen
2026-06-22 11:34:13 +02:00
parent e031064dcf
commit 201d436c3f
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -31,6 +31,9 @@ concurrency:
jobs:
deploy:
runs-on: ubuntu-latest
# Skip on the template repo itself (placeholders unsubstituted → would fail).
# Generated repos have a different name, so this guard passes for them.
if: ${{ gitea.repository != 'pplate/homelab-app-template' }}
env:
COMPOSE: docker compose -f docker-compose.yml -f docker-compose.truenas.yml -p __PROJECT__
# Production secrets — set in Gitea repo Settings → Actions → Secrets.