I have the following workflow:
name: CICD
# ...
jobs:
CI:
uses: ...
CD:
needs: [CI]
uses: ...
I have encountered an issue that needs me to temporally disable the CD job that uses other workflows (not just a single step or action).
What I have tried:
There seems to be a recent update about "Skipping workflow runs"
You can skip workflow runs triggered by the push and pull_request events by including a command in your commit message.
This sounds inconvenient, at the bottom they mention:
You can also disable a workflow from running. For more information, see "Disabling and enabling a workflow."
In which you can disable and re-enable a workflow using the GitHub UI, the REST API, or GitHub CLI. However, this doesn't seem to work for when the workflow is being used as a reusable workflows.
I can also simply omit the logic:
name: CICD
# ...
jobs:
CI:
uses: ...
But I want to preserve the version control history differently (+ make my pipeline explicitly state the job was disabled / skipped)
Is there a workaround?