From a12116e10bc63946c0c1a05ec36cd21cfd09fa28 Mon Sep 17 00:00:00 2001 From: Michael Dulude Date: Thu, 5 Dec 2024 15:43:57 -0500 Subject: [PATCH] Update weekly_html_accessibility_check.yml --- .../weekly_html_accessibility_check.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/weekly_html_accessibility_check.yml b/.github/workflows/weekly_html_accessibility_check.yml index 6cc50ee12..85aedde8c 100644 --- a/.github/workflows/weekly_html_accessibility_check.yml +++ b/.github/workflows/weekly_html_accessibility_check.yml @@ -3,6 +3,22 @@ on: schedule: - cron: '0 4 * * 0' # 0400 UTC every Sunday workflow_dispatch: + inputs: + total_combined_limit: + required: false + description: 'The maximum total allowed number of HTML accessibility errors and warnings. To skip this testing requirement, enter the value "-1". If not explicitly specified, the default value is "0".' + default: 0 + type: string + total_error_limit: + required: false + description: 'The maximum total allowed number of HTML accessibility errors. To skip this testing requirement, enter the value "-1". If not explicitly specified, the default value is "0".' + default: 0 + type: string + total_warning_limit: + required: false + description: 'The maximum total allowed number of HTML accessibility warnings. To skip this testing requirement, enter the value "-1". If not explicitly specified, the default value is "0".' + default: 0 + type: string jobs: Scheduled: @@ -10,5 +26,9 @@ jobs: with: target_url: https://spacetelescope.github.io/${{ github.event.repository.name }}/ python-version: ${{ vars.PYTHON_VERSION }} + total_combined_limit: ${{ inputs.total_combined_limit || 0 }} + total_error_limit: ${{ inputs.total_error_limit || 0 }} + total_warning_limit: ${{ inputs.total_warning_limit || 0 }} + secrets: A11YWATCH_TOKEN: ${{ secrets.A11YWATCH_TOKEN }}