Running GitHub Actions on Local Machine
Install act
.
To run a particluar workflow on push
event:
act push --workflows .github/workflows/flow_control.yml
Reuse the container, add environmental variables and set a secret:
act push \
--workflows .github/workflows/actions.yml \
--reuse \
-s SECRET=ej \
--env-file .env \
Sample workflows can be found here