smarter trigger

This commit is contained in:
tresabhi committed 2026-09-23 17:12:53 -05:00
1 parent 8af41b91b5
commit 424d9944ad
1 file changed
+8 -1
+8 -1
View File
@@ -139,7 +139,14 @@ jobs:
- name: Trigger deployment
if: ${{ github.ref == 'refs/heads/production' }}
# Deploy if:
# 1. Running cron from main using content from production to target production
# 2. Running manually and targeting non-production
if: >-
${{
github.ref == 'refs/heads/production' ||
(inputs.environment != '' && inputs.environment != 'production')
}}
env:
TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }}