diff --git a/.github/workflows/check_508_compliance.yml b/.github/workflows/check_508_compliance.yml index bf6b8ce..6157f51 100644 --- a/.github/workflows/check_508_compliance.yml +++ b/.github/workflows/check_508_compliance.yml @@ -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" @@ -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/slack-github-action@v2.0.0 @@ -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