add-and-commit

Automatically commit changes made in your workflow run directly to your repo

MIT License

Stars
1.1K
Committers
24

Bot releases are hidden (Show)

add-and-commit - v6.1.0

Published by EndBug almost 4 years ago

You can see the full changelog here.

Added:

  • token input: you can now use this instead of setting the GITHUB_TOKEN env variable, which has been deprecated. This input is optional, its default value is the default secrets.GITHUB_TOKEN. You only need to use this if you want the action to run with a PAT. (issue #110)

Deprecated:

  • GITHUB_TOKEN: the use of this env variable is now deprecated in favor of the token input, you'll start receiving warnings if you keep using it. (issue #110)
add-and-commit - v6.0.0

Published by EndBug almost 4 years ago

You can see the full changelog here.

Added:

  • (BREAKING?) Multiple git commands: support JSON/YAML arrays for the add and remove parameters (you still need pass a string as input, but that can be parsed to an array by the action). Using them will run multiple commands in succession. I don't think this will be really breaking anything, but I've used a major version change just to be sure. There's more info about this stuff on the README. (issue #95)
add-and-commit - v5.3.0

Published by EndBug almost 4 years ago

You can see the full changelog here.

Added:

  • Outputs: the action now has 3 outputs (committed, pushed, and tagged) that will be set to either true or false to tell you what the action has done. The outputs are also shown in the action logs.
add-and-commit - v5.2.0

Published by EndBug almost 4 years ago

You can see the full changelog here.

Added:

  • New push option: this lets you tell the action whether to push commit and tags to the repo. The default value is true, so that the default behavior is not changed. (issue #86)
add-and-commit - v5.1.2

Published by EndBug almost 4 years ago

You can see the full changelog here.

Fixed:

  • Fixed an issue with the build (issue #88)
add-and-commit - v5.1.1

Published by EndBug almost 4 years ago

You can see the full changelog here.

Fixed:

  • Fixed typo in parameter name: pull_strategy was written as pull_stategy (PR #83)
add-and-commit - v5.1.0

Published by EndBug about 4 years ago

You can see the full changelog here.

Added:

  • The default commit message now displays the name of the workflow too (issue #64)
add-and-commit - v5.0.0

Published by EndBug about 4 years ago

You can see the full changelog here.

Changed:

  • [BREAKING] Action parameters: multiple action parameters have been changed, refer to the docs for better info
  • The code is now entirely in TypeScript (PR #57)

Fixed:

  • Improved input checks
  • Logs are now displayed on Windows too
  • Remove unnecessary steps
  • Remove unused dependencies
add-and-commit - v4.4.0

Published by EndBug about 4 years ago

This release adds PR support to the action: you can now use when running the workflow with the pull_request event, and the action will push commits to the head branch.
Ref: issue #48

add-and-commit - v4.3.0

Published by EndBug about 4 years ago

This release add a new option: signoff. When this option is set to true, the commit command will use the --signoff argument.
More info on sign-offs: git docs
Ref: #46

add-and-commit - v4.2.1

Published by EndBug over 4 years ago

This release makes the action work also on Windows instances.
Ref: #33

add-and-commit - v4.2.0

Published by EndBug over 4 years ago

This release adds tagging: you can now create and update lightweight tags within the action. Check out the "tagging" section of the readme for more info!
Ref #30

add-and-commit - v4.1.0

Published by EndBug over 4 years ago

This release adds the ref option, that allows you to tell the action which branch it should use. If none is entered, it will default to the one that triggered the workflow (which is stored by GitHub in the GITHUB_REF env variable).
Please note that you only need to write the branch name, not the whole refs/heads/... string.
Ref issue: #29

add-and-commit - v4.0.3

Published by EndBug over 4 years ago

This release improves logs:

  • git diff will now stop emitting logs, so that everything is easier to read and won't cause buffer problems (ref issue #27).
  • Everything that is supposed to be logged will be: previous versions logged only command outputs and not echo lines. You will now find additional info in the logs.
  • To allow you to focus on the most relevant stuff, I grouped everything that only needs to exist to debug the action in a foldable group called "Internal logs".
add-and-commit - v4.0.2

Published by EndBug over 4 years ago

This release fixes the error handling, so that action failures are easier to read. Ref: #25

add-and-commit - v4.0.1

Published by EndBug over 4 years ago

This release allows the action to also work when using a scheduled event as workflow trigger (fixes #22).
It also prevents the action from logging warnings when both author_name and author_email are set.

add-and-commit - v4.0.0

Published by EndBug over 4 years ago

The version gets rid of find commands and path/pattern options: now the action uses git add and git rm commands, and you can directly choose the arguments with the add/remove options.
This version also changes the error handling: if one of the git commands fails the action will not stop. That means that if your git add pathspec doesn't match any file the action can still run the git rm command and vice versa.

add-and-commit - v3.1.0

Published by EndBug over 4 years ago

This release add the remove parameter, which allows you to delete files directly from the action.

add-and-commit - v3.0.0

Published by EndBug over 4 years ago

This release allows the action to run in multiple jobs, by pulling before creating the new commit.
Please keep in mind that this will work only if the jobs are fired subsequently, it won't work if they are run at the same time: in that case, only the first commit will get pushed, while the other will get rejected by the remote.
To run jobs one after the other you can use the needs parameter: link

Important: this will only work if you're using actions/checkout@v2, using other major versions may not work.

add-and-commit - v2.3.2

Published by EndBug almost 5 years ago

This release adds the option to change the working directory with the cwd input parameter. This can be useful if you need to commit to a repository that has not been checked out in the GITHUB_WORKSPACE.