Debugging techniques for workflows
The debugging capabilities in workflows could be better. However, they are not nonexistent; there are some tools available, some handy debugging actions, and some useful environment variables to use when debugging. The first one we’ll jump into is the act
tool, which helps you manage your workflows.
act workflow debugging tool
If the prerequisites and the installation of the tool were successful, you should be able to go into the root directory of a repository cloned previously that has been authenticated with the account that the Personal Access Token (PAT) was created under, and type the following command, which will list all the workflows in that repository:
gh act -l
This will give you a view similar to that in the following screenshot:
Figure 3.16 – Successful run of act on a repo
If you receive an error, verify that your Docker daemon is running on the installed Docker Desktop. Docker has...