Skip to content

Commit

Permalink
Fix 508 Static Site compliance check success message when run from cr…
Browse files Browse the repository at this point in the history
…on (#135)

## 🎫 Ticket

No Ticket

## 🛠 Changes

Target base url set in one step for use in later steps

## ℹ️ Context

The slack message for success/failure of the 508 compliance check was
using the url from the input, but cron does not set inputs. Instead, I
am setting the

## 🧪 Validation

Checks ran with appropriate messages
  • Loading branch information
jdettmannnava authored Jan 13, 2025
1 parent 86cd9b7 commit eb94ac8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check_508_compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
name: Compliance Check
runs-on: self-hosted
steps:
- name: Set Target Base
id: target-base
run: |
echo "TARGET_BASE_URL=${{ inputs.target_host || 'https://stage.dpc.cms.gov' }}" >> "$GITHUB_OUTPUT"
- name: Run Axe Check
env:
TARGET_BASE_URL: ${{ inputs.target_host || 'https://stage.dpc.cms.gov' }}
TARGET_BASE_URL: ${{ steps.target-base.outputs.TARGET_BASE_URL }}
run: |
TARGETS_TO_SCAN="${TARGET_BASE_URL}"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN} ${TARGET_BASE_URL}/faq.html"
Expand All @@ -41,7 +45,7 @@ jobs:
channel: "CMC1E4AEQ"
attachments:
- color: good
text: "SUCCESS: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ inputs.target_host }}`"
text: "SUCCESS: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ steps.target-base.outputs.TARGET_BASE_URL }}`"
mrkdown_in:
- text
- uses: slackapi/[email protected]
Expand All @@ -55,6 +59,6 @@ jobs:
channel: "CMC1E4AEQ"
attachments:
- color: danger
text: "FAILURE: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ inputs.target_host }}`"
text: "FAILURE: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ steps.target-base.outputs.TARGET_BASE_URL }}`"
mrkdown_in:
- text

0 comments on commit eb94ac8

Please sign in to comment.