Guard deploy workflow against running on the bare template repo
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user