Learn act

Make a script file in root of your repository i.e.,

Fyi: It is necessary to run to run file from the root of the repository.

nodemon -x 'act push --insecure-secrets' -w .github/workflows/main.yml
nodemon -x 'act schedule --insecure-secrets --secret-file=.secrets-for-act' -w .github/workflows/main.yml -w .github/

# --insecure-secrets will not hide the secret values in logs
# --secret-file has a default value of `.secrets`
# Source: `act -h`

Repos where I use files: sahilrajput03/sahilrajput03