GitHub Actions to format code and push commit
MIT License
Bot releases are visible (Hide)
#595 Add the input branch
You can specify the remote branch
#593 #594 Fix the remote branch on push event
Published by suzuki-shunsuke 9 months ago
#590 The default behaviour is changed. The action pushes a commit even if the event isn't pull_request.
To change the behaviour, please use the input skip_push
.
#590 Add a field skip_push
By default this action pushes a commit to format code if code isn't formatted.
You can skip pushing a commit using the input skip_push
.
e.g.
- uses: suzuki-shunsuke/[email protected]
with:
command: terraform fmt -recursive | sed "s|^|${{ inputs.working_directory }}/|"
commit_message: "style: terraform fmt -recursive"
skip_push: ${{ github.event_name != 'pull_request' && ! startsWith(github.event_name, 'pull_request_') }}
#587 Fix action metadata name
and description
Thank you for your contribution!
@Nimesha-Premaraja #583