Skip to content

Switch off automatic workflow runs on GitHub #733

Answered by iaindillingham
elsie-h asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @elsie-h, thanks for your question.

Workflows are specified in YAML files in your study's .github/workflows directory (the . isn't a typo; "dot" directories are hidden on macOS and Linux systems). If you created your study from the research-template, then the workflow is .github/workflows/test_runner.yaml.

I'd suggest changing

on: [push, workflow_dispatch]

to

on: [workflow_dispatch]

Doing so will mean the workflow is no longer run when you push local changes to GitHub; it is only run when you click Run workflow, in the UI.

The GitHub Actions Documentation has more information about the YAML files.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elsie-h
Comment options

elsie-h May 19, 2022
Collaborator Author

Answer selected by StevenMaude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants