Stefan Zweifel
25cac34d8d
Revert "Feature: Checkout Options"
2020-10-22 07:33:38 +02:00
Stefan Zweifel
1ba48c6d7f
Fix Linter Errors in entrypoint.sh
2020-10-15 20:30:26 +02:00
Stefan Zweifel
0ee9fb7263
Add checkout_options
2020-10-15 20:21:08 +02:00
Stefan Zweifel
6456430b6b
Ignore shellchecks
2020-10-15 20:15:31 +02:00
Christian Höltje
f905f00706
Fix checking out branch names with / chars
...
If git can't automatically figure out if the argument is a branch or
a path, it will need to be told explicitly by using `--`:
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Fixes : #106
2020-10-12 10:17:25 -04:00
Stefan Zweifel
4b8393320b
Fetch Repo before git checkout
2020-10-10 17:54:11 +02:00
Stefan Zweifel
9e4e2e76fa
Add very basic test suite with bats and shellmock ( #100 )
...
* Add bats
* Write commits tests
* Add Workflow
* Add .gitignore
* Update Test Suite
* Disable test
* Disable failing test for now
2020-09-13 14:07:14 +02:00
Stefan Zweifel
b3fc6f8a17
Revert "Creating orphan branch"
2020-09-11 11:18:24 +02:00
Daishan
505389d146
Creating orphan branch
2020-09-01 18:12:58 -07:00
Harrison Grodin
01ffd8c6f6
Only check status of files matching file_pattern
2020-08-15 22:11:45 -04:00
Stefan Zweifel
c8ded2885e
Simplify IF Condition
2020-06-26 21:00:48 +02:00
Stefan Zweifel
f120678ed1
WIP
2020-06-25 20:40:31 +02:00
Stefan Zweifel
4183594932
WIP
2020-06-25 20:38:28 +02:00
Stefan Zweifel
49e28abb3f
WIP
2020-06-25 20:31:48 +02:00
Stefan Zweifel
4ebfe28af0
Add skip_dirty_check option
2020-06-25 20:18:20 +02:00
Stefan Zweifel
b0b5ed34dd
Update entrypoint to handle push_options
2020-05-16 11:42:40 +02:00
Stefan Zweifel
1ee136f439
Inline user config with tag command
2020-04-28 13:12:43 +02:00
Stefan Zweifel
ee9d717e46
Merge branch 'master' into fix-61
...
# Conflicts:
# entrypoint.sh
2020-04-23 20:20:10 +02:00
cristianpb
2b0a9bca02
✨ Allow to add multiple files
2020-04-23 15:55:10 +02:00
Stefan Zweifel
6e0a745133
Use Array
2020-04-22 21:17:10 +02:00
Stefan Zweifel
88ddd5fba5
WIP
2020-04-22 21:04:17 +02:00
Stefan Zweifel
2dec151b5c
WIP
2020-04-22 20:49:36 +02:00
Stefan Zweifel
1ba0b8765f
WIP
2020-04-22 20:43:52 +02:00
Stefan Zweifel
f278d451d8
Revert hard coded options
2020-04-22 20:39:17 +02:00
Stefan Zweifel
5dae7dbdb7
Hard Code Options
2020-04-22 20:36:26 +02:00
Stefan Zweifel
fbbf9665a8
Output git version and debugging message
2020-04-22 20:21:08 +02:00
Stefan Zweifel
e8ab63a01b
Add ; in more places
2020-04-22 20:17:05 +02:00
Stefan Zweifel
fdbf836519
Split git-commit command
2020-04-22 20:07:31 +02:00
Stefan Zweifel
8f94f9b7ec
Revert "Revert "Place git user configuration inline before commit""
2020-04-22 20:04:52 +02:00
Stefan Zweifel
3e578b5696
Revert "Place git user configuration inline before commit"
2020-04-22 12:55:25 +02:00
Stefan Zweifel
256f31683d
Add some Debug Logs
2020-04-18 10:53:20 +02:00
Philip Arndt
80c7ed953f
Place git user configuration inline
2020-04-10 11:38:03 +12:00
Botao
d317154f77
Remove unnecessary escape
2020-04-03 13:21:53 +08:00
Stefan Zweifel
026f88c27c
Fix typo in message
2020-03-14 13:32:10 +01:00
Stefan Zweifel
f73d11d461
Revert changes
2020-03-14 13:21:42 +01:00
Stefan Zweifel
2b6b90e8f1
Test shorthand
2020-03-14 13:20:32 +01:00
Stefan Zweifel
e1770ec52b
Only add --tags option if tagging message is set
2020-03-14 13:13:34 +01:00
Stefan Zweifel
0453bb1c25
Temp disable push of tags
2020-03-14 13:11:13 +01:00
Stefan Zweifel
da55e4a0cf
Add echo statements for easier debugging
2020-03-14 13:09:53 +01:00
Stefan Zweifel
844c808726
Echo out the tagging message
2020-03-05 20:48:15 +01:00
Stefan Zweifel
0ad4c8ce73
Fix _tag_commit
2020-03-05 20:35:32 +01:00
Stefan Zweifel
3387b2f267
Add tagging_message input option
2020-03-05 20:31:06 +01:00
Stefan Zweifel
d4a53f1779
Push Tags to Remote Repository
2020-03-05 20:28:38 +01:00
Stefan Zweifel
33e8fd937f
Add changes_detected output
2020-03-03 20:51:12 +01:00
Stefan Zweifel
d69e5f0850
WIP
2020-02-23 10:16:26 +01:00
Stefan Zweifel
13e281008a
Update entrypoint.sh
2020-02-06 17:51:55 +01:00
Stefan Zweifel
42e5be9ebb
WIP
2020-02-05 21:39:14 +01:00
Stefan Zweifel
f0354eba45
WIP
2020-02-05 21:36:48 +01:00
Stefan Zweifel
af7b14b2cf
WIP
2020-02-05 21:32:57 +01:00
Stefan Zweifel
5a4e81ccd7
WIP
2020-02-05 21:31:46 +01:00
Stefan Zweifel
0884c39e7e
WIP
2020-02-05 21:28:18 +01:00
Stefan Zweifel
5ab45a4eef
WIP
2020-02-05 21:26:30 +01:00
Stefan Zweifel
5df30c89b8
Update how commit is pushed
2020-02-05 21:22:54 +01:00
Stefan Zweifel
0a5fd7e510
Merge branch 'v3' into feature/commiter-options
...
# Conflicts:
# README.md
# entrypoint.sh
2020-02-05 20:12:29 +01:00
Stefan Zweifel
0822a9b930
Add commit_author input option
2020-02-04 21:02:40 +01:00
Stefan Zweifel
d47024e59c
Add commit_user_name and commit_user_email inputs
2020-02-04 20:14:27 +01:00
Stefan Zweifel
b21b1abc6d
Update Comment
2020-02-04 19:37:58 +01:00
Stefan Zweifel
4ab94c0ec4
Remove creation of .netrc file
2020-01-13 21:23:03 +01:00
Ivan Yelizariev
5dd90bb58c
refactoring: combine merge lib.sh to entrypoint.sh
...
If we use "source /lib.sh", bash will point to wrong line in case of an error.
It's confusing on debuggin new features
2020-01-10 13:08:35 +05:00
Stefan Zweifel
7c85ce3dee
Update path to lib.sh
2019-12-12 20:46:16 +01:00
Stefan Zweifel
68035425ff
Update Path
2019-12-12 20:44:41 +01:00
Stefan Zweifel
3273c330f8
Fix path
2019-12-12 20:42:47 +01:00
Stefan Zweifel
4280601118
Create lib.sh and update entrypoint.sh
2019-12-12 20:41:00 +01:00
Ivan Yelizariev
d3ceacae7d
Add "repository" option for custom repository path
2019-12-10 17:20:25 +05:00
Andreas Möller
b1b8ae8b5c
Fix: Use 'git status -s' to check for untracked/modified files
2019-11-27 11:24:27 +01:00
Stefan Zweifel
fb3de05451
Revert "Fix: Add files that are not tracked yet"
...
This reverts commit 65d8bdf167 .
2019-11-24 12:21:42 +01:00
Andreas Möller
65d8bdf167
Fix: Add files that are not tracked yet
2019-11-22 11:55:58 +01:00
Gömöri Zsolt
2fb839c669
Remove is_defined()
2019-11-01 11:11:19 +01:00
Gömöri Zsolt
908446c002
Use :+ to avoid empty string
2019-11-01 11:03:23 +01:00
Gömöri Zsolt
2d23a29775
Use one-line if statement
2019-11-01 10:53:56 +01:00
Gömöri Zsolt
bdc88aff2c
Re-add is_defined() to eliminate empty string in git commit
2019-11-01 10:44:09 +01:00
Gömöri Zsolt
ddcd35eaa8
Remove is_defined() approach
2019-11-01 10:19:20 +01:00
Gömöri Zsolt
69d0349561
Log input params beforehand
2019-11-01 10:10:52 +01:00
Gömöri Zsolt
1ad5315ba7
Fix log statement
2019-11-01 09:51:19 +01:00
gomorizsolt
fa043bd474
Remove junk code
2019-10-31 15:13:27 +01:00
gomorizsolt
af33cfbb5c
Replace get_value with is_defined altogether
2019-10-31 14:49:38 +01:00
gomorizsolt
677efa2969
Remove blank line
2019-10-31 11:25:08 +01:00
gomorizsolt
b6dcf94303
Add is_defined and get_value to improve on code's reusability
2019-10-31 11:18:48 +01:00
gomorizsolt
a65a3a47cd
Support commit options, update README.md accordingly
2019-10-31 09:02:56 +01:00
Stefan Zweifel
25c0d721b7
Reenable if condition
2019-10-26 14:00:59 +02:00
Stefan Zweifel
d6493da30b
Disable if-condition
2019-10-26 13:58:34 +02:00
Stefan Zweifel
03de600c97
Fixes
2019-10-25 20:57:03 +02:00
Stefan Zweifel
40956d2dbd
Add file_pattern argument
2019-10-25 20:51:12 +02:00
Stefan Zweifel
5adbb8cb3e
Use GITHUB_ACTOR instead of args
2019-09-20 20:34:57 +02:00
Stefan Zweifel
97f9868da0
Rename ref to branch
2019-09-20 20:26:41 +02:00
Stefan Zweifel
7fec5eda4a
Cleanup
2019-09-20 10:46:35 +02:00
Stefan Zweifel
6c17ba31a9
Output $INPUT_REF
2019-09-20 10:43:15 +02:00
Stefan Zweifel
6f1c9227f5
Fix git push command
2019-09-20 10:37:16 +02:00
Stefan Zweifel
72e2d4cb1e
Fix git checkout
2019-09-20 10:33:12 +02:00
Stefan Zweifel
8cc484cbc5
Add ref argument
2019-09-20 10:30:36 +02:00
Stefan Zweifel
ed0ebb9072
Log $PUSH_BRANCH value
2019-09-20 10:19:34 +02:00
Stefan Zweifel
0b91625aed
WIP
2019-09-20 10:11:50 +02:00
Stefan Zweifel
ba1c2a6047
Try to fix that push command
2019-09-20 10:08:13 +02:00
Stefan Zweifel
12282205b7
Try to fix git push
2019-09-20 10:01:27 +02:00
Stefan Zweifel
ef8610f6df
Fix git push
2019-09-20 09:56:20 +02:00
Stefan Zweifel
f4fd59c4d4
Use $PUSH_BRANCH in git push command
2019-09-20 09:49:26 +02:00
Stefan Zweifel
ea88bd7cde
Try to fix checkout command
2019-09-20 09:42:26 +02:00
Stefan Zweifel
80f825a9bc
Update how the branch is checked out
2019-09-20 09:27:50 +02:00
Stefan Zweifel
0364ecfe57
Update Entrypoint
2019-08-31 18:34:01 +02:00
Stefan Zweifel
8d47eb33c5
Use Actions as Git User
2019-08-31 18:15:13 +02:00