From d88c354d71e4ec472bca69777f3c45e0b543383e Mon Sep 17 00:00:00 2001 From: nfpappas-oddball <165396779+nfpappas-oddball@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:22:41 -0400 Subject: [PATCH] Fix Vagov nb sitemap nullcheck (#772) --- .github/workflows/content-release.yml | 35 ++++++++++++++------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/content-release.yml b/.github/workflows/content-release.yml index 3cecd389b..66ac3842e 100644 --- a/.github/workflows/content-release.yml +++ b/.github/workflows/content-release.yml @@ -215,24 +215,25 @@ jobs: else touch sitemap-nb.xml fi + shell: bash - - name: setup bucket descriptor - id: bucket-descriptor - run: | - if [ "${{ inputs.build_type }}" == 'dev' ]; then - echo NEXT_SITEMAP_LOCATION="https://dev.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://dev.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'staging'] ; then - echo NEXT_SITEMAP_LOCATION="https://staging.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://staging.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - elif [ "${{ inputs.build_type }}" == 'prod' ]; then - echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - else - echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT - echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT - fi - shell: bash + - name: setup bucket descriptor + id: bucket-descriptor + run: | + if [ "${{ inputs.build_type }}" == 'dev' ]; then + echo NEXT_SITEMAP_LOCATION="https://dev.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + echo OLD_SITEMAP_LOCATION="https://dev.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + elif [ "${{ inputs.build_type }}" == 'staging'] ; then + echo NEXT_SITEMAP_LOCATION="https://staging.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + echo OLD_SITEMAP_LOCATION="https://staging.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + elif [ "${{ inputs.build_type }}" == 'prod' ]; then + echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + else + echo NEXT_SITEMAP_LOCATION="https://www.va.gov/sitemap-nb.xml" >> $GITHUB_OUTPUT + echo OLD_SITEMAP_LOCATION="https://www.va.gov/sitemap-cb.xml" >> $GITHUB_OUTPUT + fi + shell: bash - name: Generate new sitemap run: |