Skip to content

Commit af4e36b

Browse files
fix dev and prod triggers
1 parent e79534f commit af4e36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/connect-button-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
echo "PR URL is: https://connect-button-storybook-pr-${{ github.event.number }}.rdx-works-main.extratools.works" >> $GITHUB_STEP_SUMMARY
103103
104104
deploy_dev:
105-
if: ${{ github.event.pull_request }}
105+
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
106106
name: Deploy DEV
107107
runs-on: ubuntu-latest
108108
needs:
@@ -149,7 +149,7 @@ jobs:
149149
fetch_logs: "false"
150150

151151
deploy_prod:
152-
if: ${{ github.event.pull_request }}
152+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
153153
name: Deploy PROD
154154
runs-on: ubuntu-latest
155155
needs:

0 commit comments

Comments
 (0)