Skip to content

Commit d625b72

Browse files
Fix GitHub Actions expression syntax in CI/CD pipeline deployment check
- Separate GitHub Actions expression from JavaScript logical OR to avoid syntax conflicts - Use explicit variable assignment for deploy_environment input handling - Resolves workflow validation error at line 192 Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
1 parent c2bdf26 commit d625b72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci-cd-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ jobs:
190190
with:
191191
github-token: ${{ secrets.GITHUB_TOKEN }}
192192
script: |
193-
const environment = '${{ github.event.inputs.deploy_environment }}' || 'development';
193+
const deployInput = '${{ github.event.inputs.deploy_environment }}';
194+
const environment = deployInput || 'development';
194195
const isProduction = environment === 'production';
195196
196197
console.log(`🚀 Deployment readiness check for: ${environment}`);

0 commit comments

Comments
 (0)