Skip to content

Commit

Permalink
Revert "VACMS-13975: Report broken link numbers in content release. (#…
Browse files Browse the repository at this point in the history
…1806)" (#1807)

This reverts commit 3e9007b.
  • Loading branch information
ndouglas authored Nov 27, 2023
1 parent c1f7cd4 commit 98905f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/content-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,14 @@ jobs:
echo "DEPLOY_ENV=prod" >> $GITHUB_ENV
echo "BUILD_TRIGGER=cms" >> $GITHUB_ENV
- name: Check broken links
id: get-broken-link-info
run: node ./script/github-actions/check-broken-links-blocks.js ${{ env.BUILDTYPE }}

- name: Build JSON object for step metrics
run: |
cat build/${{env.BUILDTYPE}}/metalsmith-step-metrics.json | \
jq '.series[].tags[0] = "env:${{env.DEPLOY_ENV}}"' | \
jq '.series[].tags[1] = "build_number:${{github.run_number}}"' | \
jq '.series[].tags[2] = "instance_type:${{env.INSTANCE_TYPE}}"' | \
jq '.series[].tags[3] = "heap_size:${{env.MAXIMUM_HEAP}}"' | \
jq '.series[].tags[4] = "trigger:${{env.BUILD_TRIGGER}}"' | \
jq '.series[].tags[5] = "broken_links:${{steps.get-broken-link-info.outputs.BROKEN_LINKS || 0 }}"' > metrics.json
jq '.series[].tags[4] = "trigger:${{env.BUILD_TRIGGER}}"' > metrics.json
- name: Get Datadog api key from Parameter Store
uses: department-of-veterans-affairs/action-inject-ssm-secrets@d8e6de3bde4dd728c9d732baef58b3c854b8c4bb # latest
Expand All @@ -256,6 +251,10 @@ jobs:
-H "DD-API-KEY: ${{ env.GHA_CONTENT_BUILD_DATADOG_API_KEY }}" \
-d @- < metrics.json
- name: Check broken links
id: get-broken-link-info
run: node ./script/github-actions/check-broken-links-blocks.js ${{ env.BUILDTYPE }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef # v2.0.0
if: ${{ steps.get-broken-link-info.outputs.UPLOAD_AND_NOTIFY == '1' && always() }}
Expand Down
1 change: 0 additions & 1 deletion script/github-actions/check-broken-links-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ if (fs.existsSync(reportPath)) {
console.log(
`${brokenLinks.brokenLinksCount} broken links found. \n ${brokenLinks.summary}`,
);
core.setOutput('BROKEN_LINKS', `${brokenLinks.brokenLinksCount}`);
core.setOutput('SLACK_BLOCKS', `${JSON.stringify(payload)}`);

if (!IS_PROD_BRANCH && !contentOnlyBuild) {
Expand Down

0 comments on commit 98905f7

Please sign in to comment.