Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/fe-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Deploy job will never run

The workflow still only triggers on push to main, but this job now requires github.ref == 'refs/heads/develop'. Since pushes to develop never start the workflow, the deploy step is now dead code—deployment will never happen. Update the workflow trigger (or revert the condition) so the deploy job can actually execute.

 on:
   pull_request:
     branches: ['develop']
   push:
-    branches: ['main']
+    branches: ['develop']
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
on:
pull_request:
branches: ['develop']
push:
branches: ['develop']
🤖 Prompt for AI Agents
.github/workflows/fe-ci-cd.yml around line 117: the deploy job is gated by if:
github.event_name == 'push' && github.ref == 'refs/heads/develop' but the
workflow trigger still only fires on pushes to main, so the deploy job will
never run; fix by either updating the workflow's on.push.branches to include
'develop' (or use a wider pattern like ['main','develop']) so pushes to develop
start the workflow, or revert/change the job condition to match the existing
trigger (e.g., check for refs/heads/main or remove the github.ref check) so the
deploy job can execute.

environment: dongarium
steps:
- name: Download build artifact
Expand Down