A companion example repository to Trigger another GitHub Workflowâ-âwithout using a Personal Access Token.
Prettify all source files on push, using Prettier.
- Fork the repository
- Enable actions for the forked repository
- Following the post, Add Deploy Key to GitHub Repository
- Make an ugly change to one of the files, e.g: replace
double quotes with single in
.github/workflows/prettify.yml
- Push changes to the repository
Observe the result of this Push:
- Prettify Workflow is executed by GitHub Actions
- Job prettifies the file(s)
- Any changes are pushed back to the repository
- Prettify Workflow is executed again
- No changes are generated, Workflow terminates