Skip to content

Commit c73bfef

Browse files
authored
Modify deployment workflow for debugging
Commented out the condition for running deployment on the main branch and added debug echo statements for PR number.
1 parent 1b11cfb commit c73bfef

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
# Deployment to production folder in S3 bucket
186186
deploy_to_production:
187187
runs-on: ubuntu-latest
188-
if: github.ref == 'refs/heads/main' # Run for main branch
188+
#if: github.ref == 'refs/heads/main' # Run for main branch
189189
steps:
190190
- name: configure aws credentials
191191
uses: aws-actions/configure-aws-credentials@v2
@@ -211,7 +211,9 @@ jobs:
211211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212212
run: |
213213
echo "inside pr_number=$PR_NUMBER"
214-
echo "Before pr_number=$PR_NUMBER"
214+
echo "Before pr_number=$PR_NUMBER"
215+
PR='${{ steps.pr.outputs.PR_NUMBER }}'
216+
echo "USING PR =$PR"
215217
216218
PR_API_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/pulls"
217219
PR_NUMBER=$(curl -s -H "Accept: application/vnd.github.groot-preview+json" \

0 commit comments

Comments
 (0)