github-action-format

GitHub Actions to format code and push commit

MIT License

Stars
3

Bot releases are hidden (Show)

github-action-format - v0.2.1 Latest Release

Published by suzuki-shunsuke 9 months ago

Features

#595 Add the input branch

You can specify the remote branch

Bug Fixes

#593 #594 Fix the remote branch on push event

github-action-format - v0.2.0

Published by suzuki-shunsuke 9 months ago

⚠️ Breaking Changes

#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.

Features

#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_') }}

Fixes

#587 Fix action metadata name and description

New contributors 🎉

Thank you for your contribution!

@Nimesha-Premaraja #583

github-action-format - v0.1.1

Published by suzuki-shunsuke almost 3 years ago

Milestone

Bug Fixes

#13 Skip pushing the fix except for pull request

github-action-format - v0.1.0

Published by suzuki-shunsuke almost 3 years ago