Switch off automatic workflow runs on GitHub #733
-
Hey, The workflow runs for my project take >6 hours to run, and as the repo is private (the work is not yet published), the workflow runs cost money. I manually cancel the runs if I don't need them, but @bloodearnest and @iaindillingham mentioned that it is possible to switch off automatic workflow runs on GitHub. Could you please let me know how this is done, and if it is recommended? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @elsie-h, thanks for your question. Workflows are specified in YAML files in your study's 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. |
Beta Was this translation helpful? Give feedback.
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
to
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.