Stefan Zweifel
28e16e8177
Release preparations for v7 ( #394 )
2025-10-12 16:31:03 +02:00
Stefan Zweifel
d7ee275235
Change internal variable names
2025-10-12 14:37:32 +02:00
Stefan Zweifel
19497011bb
Merge branch 'master' into pr/391
2025-10-12 14:11:57 +02:00
Stefan Zweifel
d1854850ec
Enable Detached State Check
2025-09-30 16:48:49 +02:00
Elias Boulharts
e9f84b936b
feature: allow using custom tag message
...
Signed-off-by: Elias Boulharts <elias@MacBook-Pro-de-Elias.local >
2025-09-24 12:15:10 +02:00
Stefan Zweifel
9a4902607d
Update Tests
2025-09-17 14:08:26 +02:00
Stefan Zweifel
d330c718ba
Remove warnings of deprecated inputs
2025-09-17 13:32:46 +02:00
Stefan Zweifel
2da8d963b4
Restore skip_fetch, skip_checkout, create_branch
2025-09-17 11:02:55 +02:00
Stefan Zweifel
33b203d92a
Disable Check if Repo is in Detached State
...
Fixes #378
2025-06-11 13:22:17 +02:00
Stefan Zweifel
8ddf02de71
Add git-auto-commit to warning text
2025-05-03 16:03:43 +02:00
Stefan Zweifel
e7955f713c
Emit warning if deprecated/removed options are used
2025-05-03 15:51:01 +02:00
Stefan Zweifel
739fd03b2d
Merge branch 'master' into v6-next
2025-05-03 10:31:03 +02:00
Stefan Zweifel
4f8f3ad16e
Rename Input and add output
2025-04-19 10:23:52 +02:00
Lior Dux
12e100dacb
Update entrypoint.sh
2025-03-23 22:05:01 +02:00
Lior Dux
4db797a961
Update entrypoint.sh
2025-03-23 22:01:31 +02:00
Stefan Zweifel
1d986f74dd
Improve Error Message
2025-02-05 17:17:19 +01:00
Stefan Zweifel
ad56d4eb46
Throw error if repo is in detached state
2025-02-05 17:14:02 +01:00
Stefan Zweifel
9fa4cb99cf
Merge pull request #314 from stefanzweifel/v6/remove-local-branch-switch
2025-02-05 16:01:10 +01:00
Constantin Comendant
8621497c8c
Fail if attempting to execute git commands in a directory that is not a git-repo. ( #326 )
...
* Fail (and log message) if attempting to execute git commands in a directory that is not a git-repo.
* Add Test
* Code Formatting
---------
Co-authored-by: Constantin Comendant <constantin@uberagent.com >
Co-authored-by: Stefan Zweifel <stefan@stefanzweifel.dev >
2024-04-11 21:00:36 +02:00
Stefan Zweifel
e833d4f211
Remove _switch_to_branch function
2023-12-20 20:10:12 +01:00
Stefan Zweifel
aa2cec9c08
Don't switch local branches
2023-12-19 20:11:39 +01:00
Stefan Zweifel
43818d5044
Fix Typo
2023-10-06 19:30:48 +02:00
Stefan Zweifel
aeb1802648
Add _log and _set_github_output functions ( #273 )
...
* Add _set_github_output function
* Use _set_github_output in Action
* Add _log function
* Use _log in Action and fix Test Cases
* Update wording in log messages
* Update note about removal of old output syntax
Logic is now encapuslated in a single function. I don’t mind keeping it around until spring / June 2023
2022-12-22 19:45:17 +01:00
ZeroRin
3ea6ae190b
Fix "nothing to commit" error with LF/CRLF changes #241 ( #265 )
...
* fix crlf test
* add diff check before commit
* add dirty check flag (not sure if needed)
* Update test name and add more assertions
Update test name to make it clear that the Action no longer fails to detect CRLF changes.
* Add Comment to explain why we use git-diff again
* Add test to confirm content changes are commited
* Closes #241
Co-authored-by: Stefan Zweifel <hello@stefanzweifel.io >
2022-12-01 20:47:06 +01:00
Stefan Zweifel
0b007fbd11
Let Action fail if git binary can't be located ( #261 )
...
* Check if git binary exists
* Add Tests
2022-11-05 11:53:46 +01:00
Stefan Zweifel
0049e3fa40
Use deprecated set-output syntax if GITHUB_OUTPUT environment is not available ( #255 )
...
* Fallback to set-output if GITHUB_OUTPUT not available
* Add Tests to cover old syntax
2022-10-26 18:55:42 +02:00
Andrew Monshizadeh
2fde6fc18d
Replace set-output usage with GITHUB_OUTPUT ( #252 )
...
* GitHub has deprecated set-output and now needs to add the content to the GITHUB_OUTPUT file
* Update tests too
* Fix tests and shell-format changes
* Revert yarn.lock changes
2022-10-22 10:42:11 +02:00
Stefan Zweifel
4d00f10668
Expand file_pattern-input to an array ( #205 )
...
* Expand file_pattern input
* Expand file pattern array in git-status
* Add Failing Test
* Expand INPUT_FILE_PATTERN
* Fix Shellcheck Issues
* Add test to cover file expansion works when globbing is disabled
* Add explanation to README
2022-09-17 15:18:36 +02:00
Stefan Zweifel
ebe77391c6
Add create_branch option to force create a new branch ( #203 )
...
* Add create_branch option
* Checkout new branch if create_branch input is true
* Add tests
* Update README
2022-02-27 07:52:17 +01:00
Stefan Zweifel
dee58f4213
Remove nbsp from entrypoint.sh
2022-02-22 20:02:04 +01:00
Ken Odegard
af49309116
Properly disambiguate between branch or file checkout
2022-01-11 10:21:56 -06:00
Chris Buckley
fc174e2406
Add skip_checkout option
2022-01-10 00:17:58 +00:00
Jon Cram
68fd92dd9c
Output hash of created commit
2021-09-10 14:37:45 +01:00
Tim Robertson
ccad85927e
Add options for add/status commands
2021-05-03 11:26:56 -04:00
Stefan Zweifel
be370eccae
Create flag to disable globbing
2021-04-10 17:10:27 +02:00
Stefan Zweifel
f4f9aedbee
Set noglob in git-auto-commit
2021-04-10 16:58:48 +02:00
Stefan Zweifel
9bb0fd2324
Push tags by using —follow-tags and —atomic
...
By using —follow-tags we push all annotated tags alongside the commit to the remote repository.
In addition, we’re using —atomic. This ensures that all refs are updated.
- https://github.blog/2015-04-30-git-2-4-atomic-pushes-push-to-deploy-and-more/#atomic-pushes
- https://stackoverflow.com/a/3745250
- https://therightstuff.medium.com/the-rights-and-wrongs-of-git-push-with-tags-998667eaed8f
2021-02-26 20:17:32 +01:00
Stefan Zweifel
75625df4f3
Revert "Feature: Create a new branch, if the given branch name doesn't exist yet"
2021-02-23 21:14:19 +01:00
Stefan Zweifel
1aee6e6b46
Make Linter Happy
2021-02-07 16:14:11 +01:00
Stefan Zweifel
94941cff88
Cleanup Code
2021-02-07 16:09:59 +01:00
Stefan Zweifel
7507738fca
Use git branch --list
2021-02-07 16:07:43 +01:00
Stefan Zweifel
53438d58ce
Create new branch if NAME is given
2021-02-07 15:44:48 +01:00
Stefan Zweifel
b53a2f8baf
Set --depth to 1
2020-12-15 20:30:42 +01:00
Stefan Zweifel
a9021d5359
Add skip_fetch input option
...
This new option will allow users to skip the execution of `git fetch` if it has a negative impact in their workflows.
In a future PR I will probably remove the call to git-fetch interely. It was added in #108 in relation to a problem with slashes in branch names. That problem wasn't properly fixed though.
2020-12-13 09:31:16 +01:00
Stefan Zweifel
fafea853e8
Set depth on git-fetch
2020-12-13 09:22:38 +01:00
Stefan Zweifel
983b799941
Output Commit User, Author and Message variables
2020-11-25 20:19:39 +01:00
Stefan Zweifel
4a75a2e723
Disable shellsheck for git-checkout
2020-10-24 11:33:52 +02:00
Stefan Zweifel
1e826be61c
Revert "Fix checking out branch names with / chars"
2020-10-24 11:28:52 +02:00
Stefan Zweifel
4cc90c7784
Fix Linter Errors
2020-10-22 07:37:16 +02:00
Stefan Zweifel
25cac34d8d
Revert "Feature: Checkout Options"
2020-10-22 07:33:38 +02:00