Skip to content

Commit

Permalink
Issue 572 - Next Build Content Release workflow exit on failure (#595)
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Bolling <[email protected]>
Co-authored-by: JR Reed <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2024
1 parent 455164e commit 283087b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/content-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,14 @@ jobs:
cd main && yarn export --DRUPAL_CLIENT_ID ${{ secrets.PROD_DRUPAL_CLIENT_ID }} --DRUPAL_CLIENT_SECRET ${{ secrets.PROD_DRUPAL_CLIENT_SECRET }} --no-USE_REDIS | tee -a yarnoutput
echo YARN_OUTPUT=$(<yarnoutput)
ls
cd out
ls -l
ls out
if [[ $? -ne 0 ]]; then
echo "One or more pages failed to build. Exiting."
exit 1
else
cd out
ls -l
fi
#command: cd main && yarn export --NEXT_PUBLIC_DRUPAL_BASE_URL https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov --NEXT_IMAGE_DOMAIN https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov --SITE_URL https://www.va.gov --DRUPAL_CLIENT_ID ${{ secrets.PROD_DRUPAL_CLIENT_ID }} --DRUPAL_CLIENT_SECRET ${{ secrets.PROD_DRUPAL_CLIENT_SECRET }} --no-USE_REDIS

Expand Down

0 comments on commit 283087b

Please sign in to comment.