Skip to content

Commit 52d3ff1

Browse files
chore: fix small issue in internal-promotion (#1806)
1 parent 25d4522 commit 52d3ff1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/internal-promotion.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,11 @@ jobs:
179179

180180
# Step 2: Deploy to Staging
181181
deploy-staging:
182-
# Only run for workflow_dispatch on main or release-please branches
182+
# For workflow_dispatch: only on main or release-please branches
183+
# For pull_request: only release-please PRs
183184
if: |
184-
github.event_name == 'workflow_dispatch' &&
185-
(github.ref_name == 'main' || startsWith(github.ref_name, 'release-please--'))
185+
(github.event_name == 'workflow_dispatch' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release-please--'))) ||
186+
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release-please--'))
186187
needs: [resolve-version, deploy-dev]
187188
runs-on: ubuntu-latest
188189
environment: nr1-staging

0 commit comments

Comments
 (0)