All of our workflows by type, and git hooks to update the workflow file pre-commit.
To use :
curl https://pre-commit.com/install-local.py | python3 -
cd $my_repo
pre-commit sample-config > .pre-commit-config.yaml
Then you can add our github-actions hooks to the .pre-commit file :
- repo: https://github.com/SineQuaNonSoftware/workflows/
rev: master
hooks:
- id: terraform-github-actions
We currently have :
terraform-github-actions
puppet-github-actions
puppet-forge-github-actions
rails-github-actions
pre-commit autoupdate
Install all the hooks
pre-commit install
List of available hooks Adding existing hooks Hook creation
pre-commit run --all-files # Runs all configured hooks on all files
pre-commit run --all-files terraform-github-actions # Run this particular hook on all files