Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added logic to manually trigger a workflow via the GitHub… #2107

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/jobs/set_job_controls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand Down