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

CI: Configure workflows to run on 'workflow_dispatch' event #3133

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Mar 22, 2024

Description of proposed changes

Inspired by the comment #2910 (comment).

Sometimes we want to trigger a workflow to see if everything still works. This can be done by configuring workflows to run on the workflow_dispatch event.

The benchmarks.yml workflow is already configured with workflow_dispatch event. To manually trigger a run, go to https://github.com/GenericMappingTools/pygmt/actions/workflows/benchmarks.yml and click the "Run workflow" button on the right.

This enable configures more workflows to run on wotkflow_dispatch event. Below is a list of workflows that will support manual triggering after this PR.

  • benchmarks.yml
  • cache_data.yaml
  • check-links.yml
  • ci_docs.yml
  • ci_doctests.yaml
  • ci_tests_dev.yaml
  • ci_tests_legacy.yaml
  • ci_tests.yaml
  • dvc-diff.yml
  • format-command.yml
  • publish-to-pypi.yml
  • release-baseline-images.yml
  • release-drafter.yml
  • slash-command-dispatch.yml
  • style_checks.yaml
  • type_checks.yml

Reference: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow

@seisman seisman added maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. labels Mar 22, 2024
@seisman seisman added this to the 0.12.0 milestone Mar 22, 2024
Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, makes sense to add workflow_dispatch to these CI workflows. Just some sentence rewording suggestions.

.github/workflows/cache_data.yaml Outdated Show resolved Hide resolved
.github/workflows/cache_data.yaml Outdated Show resolved Hide resolved
@seisman seisman enabled auto-merge (squash) March 22, 2024 09:28
@seisman seisman removed the needs review This PR has higher priority and needs review. label Mar 22, 2024
@seisman seisman disabled auto-merge March 22, 2024 09:49
@seisman seisman merged commit 32e3cb3 into main Mar 22, 2024
17 of 19 checks passed
@seisman seisman deleted the ci/workflow-dispatch branch March 22, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants