Run Github actions locally - ashBabu/Utilities GitHub Wiki
Nektos/act provides a useful tool to check the Github workflow file locally
here
Installationcurl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
. This will install as/bin/act
. Check the console log carefully
Running
- Then
cd
to the root folder containing.github/
which contains the workflow file. - Run
/bin/act -s GITHUB_TOKEN=YOUR_PERSONAL_ACCESS_TOKEN -W /path/to/the/workflow.yml