Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you pause, disable a Github Action?

Is there a way to put an argument into a GitHub action definition so that the action does not run when you push it to GitHub?

I have a package template, and I want to include certain actions, but I don't want users of the template to have to do something to get those actions to run (not run automatically – and fail – when when they push to GitHub)

I'm hoping there's a configuration field for run_automatically: false or something similar.

like image 554
conner.xyz Avatar asked Dec 30 '25 10:12

conner.xyz


1 Answers

There are two ways:

  1. One you can disable it using the Github's actions tab
  2. Add the following code to the workflow
...
jobs:
 build_and_preview:
   if: ${{ false }} # <- This make sure the workflow is skipped without any alert
   runs-on: ubuntu-latest
   .
   .

like image 73
NevetsKuro Avatar answered Jan 02 '26 03:01

NevetsKuro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!