'Single Push Without Github Action

I have a github repository for which I have an CI script set up using Github Actions. On 95% of the pushes into main, we need to run the script, so the script is triggered by push on main. Is there a way to push without executing actions as an exception. I am imaging something like:

git push main --no-action


Solution 1:[1]

You can have GitHub Actions skip a push event by including [skip ci] or any of the variants of that in your commit message as described in the GitHub Actions docs on skipping workflow runs.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 PMHM