Skip to content

Releases: stefanzweifel/git-auto-commit-action

v4.1.5

23 Apr 18:47
Compare
Choose a tag to compare

Added

  • Update file_pattern to support multiple file paths #65

Changes

  • Revert changes made in v4.1.4 #63

Fixes

  • Fix issue with commit_options #64

v4.1.4

22 Apr 10:59
Compare
Choose a tag to compare

Fixed

  • Fix bug introduced in previous version, where git user configuration has been placed inline #62

v4.1.3

18 Apr 08:56
Compare
Choose a tag to compare

Changed

  • Place Git user configuration inline #59

v4.1.2

03 Apr 07:20
Compare
Choose a tag to compare

Fixes

  • Fix Issue with changes_detected-output #57

v4.1.1

14 Mar 12:39
Compare
Choose a tag to compare

Fixes

  • Fix issue where commit has not been pushed to remote repository, when no branch-option has been given #54

v4.1.0

05 Mar 19:55
Compare
Choose a tag to compare

Added

  • Add changes_detected output #49, #46
  • Add tagging_message input option to create and push tags #50, #47

v4.0.0

24 Feb 19:07
Compare
Choose a tag to compare

This release switches this Action from a Docker action to a node Action. The script now runs in the node12-environment.

This change brings the following benefits:

  • Faster run time, as Docker image does not have to be built for every Workflow run
  • Tools like husky can now be executed before a commit is created.

See #45 for more information.

v3.0.0

06 Feb 20:18
Compare
Choose a tag to compare

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 }}

v2.5.0

18 Dec 11:01
Compare
Choose a tag to compare

Added

  • Add new repository-argument #22

Changed

  • Extract logic of the Action into methods and into a separate file #24

v.2.4.0

30 Nov 18:42
Compare
Choose a tag to compare
  • Commit untracked files #19 (fixes #16)
  • Add support for Git-LFS #21 (fixes #20)