mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-02 23:40:36 +01:00
cleaner logic
This commit is contained in:
1 parent
fc9050e7fe
commit
625d8d1595
1 file changed
+7
-5
@@ -139,13 +139,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Trigger deployment
|
- name: Trigger deployment
|
||||||
|
|
||||||
# Deploy if:
|
# workflow should trigger if:
|
||||||
# 1. Running cron from main using content from production to target production
|
# - is by cron and is on main: triggering to production
|
||||||
# 2. Running manually and targeting non-production
|
# - is by push and is on production: triggering to production
|
||||||
|
# - is by manual and is on anything: triggering to anything
|
||||||
if: >-
|
if: >-
|
||||||
${{
|
${{
|
||||||
github.ref == 'refs/heads/production' ||
|
(github.event_name == 'schedule' && github.ref == 'refs/heads/main')
|
||||||
(inputs.environment != '' && inputs.environment != 'production')
|
|| (github.event_name == 'push' && github.ref == 'refs/heads/production')
|
||||||
|
|| (github.event_name == 'workflow_dispatch')
|
||||||
}}
|
}}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in new issue
Block a user