From 05297bd54bda7a70b1f869262a051d60fe1aefb7 Mon Sep 17 00:00:00 2001 From: Long Le Date: Mon, 16 Sep 2024 10:08:01 -0400 Subject: [PATCH] update workflow trigger --- .github/workflows/tyk-production.yml | 8 ++++++-- .github/workflows/tyk-staging.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tyk-production.yml b/.github/workflows/tyk-production.yml index 2030c46..5577fc6 100644 --- a/.github/workflows/tyk-production.yml +++ b/.github/workflows/tyk-production.yml @@ -3,8 +3,12 @@ name: Generate Production Tyk Assets # Perform the env promotion only on push to main branch on: - push: - branches: [ main ] + workflow_dispatch: + +permissions: + contents: write + actions: read + checks: write jobs: set-up-prod-tyk-assets: diff --git a/.github/workflows/tyk-staging.yml b/.github/workflows/tyk-staging.yml index d706b05..c280555 100644 --- a/.github/workflows/tyk-staging.yml +++ b/.github/workflows/tyk-staging.yml @@ -4,8 +4,12 @@ name: Generate Staging Tyk Assets # Perform the env promotion only on push to main branch on: - push: - branches: [ main ] + workflow_dispatch: + push: + paths: + - 'dev/**' + branches: + - main jobs: # Set up staging assets