To prevent unnecessary workflow runs, scheduled workflows may be disabled automatically.
Generally, in the following situations the scheduled workflows will be disabled automatically:
- When a public repository is forked.
- In a public repository, when no repository activity has occurred in 60 days.
To view more details, you can see “Disabling and enabling a workflow”.
Is there any way to enable all workflow??
We seems have no an easy way to enable all the workflows quickly.
As a workaround, I have a method that can be once and for all.
Use the “List repository workflows” endpoint to list all the workflows in your repository. From the response content you can get the id of each workflow.
In the loop, use the “Enable a workflow” endpoint to enable all the workflows listed in above step.
To view more details, you can see the “Workflows API”.
This workflow may be useful if you need to enable large number of workflows in a repository.