git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.

MIT License

Stars
1.8K
Committers
45

Bot releases are hidden (Show)

git-auto-commit-action - v4.12.0

Published by stefanzweifel about 3 years ago

Added

  • Add commit_hash output #172
git-auto-commit-action - v4.11.0

Published by stefanzweifel over 3 years ago

Added

  • Add status_options and add_options option #156
git-auto-commit-action - v4.10.0

Published by stefanzweifel over 3 years ago

Added

  • Add disable_globbing option #153, #154
git-auto-commit-action - v4.9.2

Published by stefanzweifel over 3 years ago

Fixes

  • Push created annotated tags to remote by using --follow-tags and --atomic instead of just --tags #146
git-auto-commit-action - v4.9.1

Published by stefanzweifel over 3 years ago

Changed

  • Revert changes made in v4.9.0. A branch will no longer be automatically generated. #144

Sorry for breaking your builds!

git-auto-commit-action - v4.9.0

Published by stefanzweifel over 3 years ago

Changed

  • Automatically create branch if a branch with the given name does not exist #140
git-auto-commit-action - v4.8.0

Published by stefanzweifel almost 4 years ago

Added

  • Add skip_fetch option to skip the execution of git-fetch #131

Changed

  • Update git fetch to only fetch the latest commit from remote #131
git-auto-commit-action - v4.7.2

Published by stefanzweifel almost 4 years ago

This release basically reverts the Action to the state of v4.6.0. Multiple users reported that the changes made in v4.7.0 and v4.7.1 broke their workflows. Apologies for that!

Changed

  • Revert change to fix git-checkout with special characters in branch names #122
git-auto-commit-action - v4.7.1

Published by stefanzweifel almost 4 years ago

Removed

  • Remove checkout_options as it broke everything #120
git-auto-commit-action - v4.7.0

Published by stefanzweifel almost 4 years ago

Added

  • Add checkout_options #115
git-auto-commit-action - v4.6.0

Published by stefanzweifel about 4 years ago

Changed

  • Make "commit_message" optional and set default commit message to "Apply automatic changes" #103, #110

Fixes

  • Better support for branch names with special characters in them #108
git-auto-commit-action - v4.5.1

Published by stefanzweifel about 4 years ago

Removed

  • Remove orphan branch feature added in #95 which broke stuff (#98)
git-auto-commit-action - v4.5.0

Published by stefanzweifel about 4 years ago

Added

  • Create orphan branch if branch does not exist #95
git-auto-commit-action - v4.4.1

Published by stefanzweifel about 4 years ago

Changed

  • Include given file_pattern in git dirty check #91
git-auto-commit-action - v4.4.0

Published by stefanzweifel over 4 years ago

Added

  • Add option to skipt the dirty check and always try to create and push a commit #82, #84
git-auto-commit-action - v4.3.0

Published by stefanzweifel over 4 years ago

Note: Since v4.3.0 we provide major version tags. You can now use stefanzweifel/git-auto-commit-action@v4 to always use the latest release of a major version. See #77 for details.

Added

  • Add new push_options-input. This feature makes it easier for you to force-push commits to a repository. #78, #72

Diff

git-auto-commit-action - v3.0.0

Published by stefanzweifel over 4 years ago

v3.0.0 comes with a couple of breaking changes and 3 new input options.

Breaking changes

  1. This Action now requires that you use at least action/checkout@v2. The action/checkout team made some significant changes to the Action which we take advantage of (see next point).
  2. This Action now longer requires a GITHUB_TOKEN. As mentioned in the first point, you should now use action/checkout@v2. v2 of the Action persists the used authentication token, so other Actions in the Workflow run can execute git commands which interract with GitHub. If you experience problems, you can still overwrite the used token (with a Personal Access Token for example). Checkout the usage documentation of actions/checkout for details.

Added

We've added 3 new options to allow you to customize the commit user and author:

Checkout the action.yml file for more detailed information.

Changes

The branch input option is now optional (again). action/checkout@v2 no longer leaves the repo in a detached HEAD state in Workflows listening to the push-event. This allows us to simply call git push origin to push the changes back to the repository.

However, the branch input option is still required for Workflows which listen to the pull_request event. Checkout the usage examples in the README.

Workflow examples

Following are 2 Workflow examples on how you can use this Action on Workflows which listen to push and pull_request-events.

push-event

name: Format PHP

on: push

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Run php-cs-fixer
      uses: docker://oskarstark/php-cs-fixer-ga

    - uses: stefanzweifel/[email protected]
      with:
        commit_message: Apply php-cs-fixer changes

pull_request-event

name: Format PHP

on: pull_request

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        ref: ${{ github.head_ref }}

    - name: Run php-cs-fixer
      uses: docker://oskarstark/php-cs-fixer-ga

    - uses: stefanzweifel/[email protected]
      with:
        commit_message: Apply php-cs-fixer changes
        branch: ${{ github.head_ref }}
git-auto-commit-action - v2.5.0

Published by stefanzweifel almost 5 years ago

Added

  • Add new repository-argument #22

Changed

  • Extract logic of the Action into methods and into a separate file #24
git-auto-commit-action - v.2.4.0

Published by stefanzweifel almost 5 years ago

  • Commit untracked files #19 (fixes #16)
  • Add support for Git-LFS #21 (fixes #20)
git-auto-commit-action - v2.3.0

Published by stefanzweifel almost 5 years ago

  • Add a new commit_option-argument. Allows users to define additional commit options for the git-commit command. #14