From ae5cabad97403bdc49e6413f0884d5a53466aa35 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:29:54 -0600 Subject: [PATCH] =?UTF-8?q?added=20logic=20to=20manually=20trigger=20a=20w?= =?UTF-8?q?orkflow=20via=20the=20GitHub=E2=80=A6=20(#2107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/jobs/set_job_controls.sh | 8 +++++++- .github/workflows/testing.yml | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/jobs/set_job_controls.sh b/.github/jobs/set_job_controls.sh index 14f85ddb93..6e640930d2 100755 --- a/.github/jobs/set_job_controls.sh +++ b/.github/jobs/set_job_controls.sh @@ -66,7 +66,13 @@ elif [ "${GITHUB_EVENT_NAME}" == "push" ]; then fi fi - + +elif [ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]; then + + if [ "${force_tests}" == "true" ]; then + run_diff=true + fi + fi # if updating truth or running diff, run unit tests diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 88332b4da0..550add3594 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -23,6 +23,13 @@ on: paths-ignore: - 'met/docs/**' + workflow_dispatch: + inputs: + force_tests: + description: 'Run the unit tests' + default: true + type: boolean + env: DOCKERHUB_REPO: dtcenter/met-dev @@ -39,6 +46,7 @@ jobs: run: .github/jobs/set_job_controls.sh env: commit_msg: ${{ github.event.head_commit.message }} + force_tests: ${{ github.event.inputs.force_tests }} outputs: run_compile: ${{ steps.job_status.outputs.run_compile }}