Carles Pina i Estany
7096925caa
Report the error if the destination branch does not exist
2021-12-14 23:46:24 +00:00
Carles Pina i Estany
e6c065d351
Fix text
2021-12-14 23:41:43 +00:00
Carles Pina i Estany
e7314057a0
Fix deleting of files when TARGET_DIRECTORY is not specified
2021-12-08 23:55:47 +01:00
Carles Pina i Estany
24c550e8a7
Merge branch 'main' of github.com:cpina/github-action-push-to-another-repository into main
2021-12-08 23:34:05 +01:00
Carles Pina i Estany
c200780764
Improve message
2021-12-08 23:33:53 +01:00
Carles Pina Estany and GitHub
6e36e20d0e
Merge pull request #44 from rottencandy/patch-2
...
Update documentation for target-branch
2021-11-10 08:58:48 +01:00
Carles Pina i Estany
460cd93e14
Restore the .git even in the code path without target_directory
2021-10-26 00:04:38 +01:00
Carles Pina i Estany
66ead10846
Delete unnedded code
2021-10-26 00:02:51 +01:00
Carles Pina i Estany
5ca36a784d
If no directory to be deleted avoids... deleting the directory
2021-10-25 23:55:36 +01:00
Carles Pina i Estany
371fdd6652
Avoid unneeded check
2021-10-25 23:47:44 +01:00
Carles Pina i Estany
df5ac1b335
Merge branch 'patch-1' into main
2021-10-25 23:41:08 +01:00
Carles Pina i Estany
f7a5c6e388
Change the order (all the required and then all the optionals)
2021-10-25 23:32:18 +01:00
Carles Pina i Estany
9ed2368a01
server is not required (default was already set)
2021-10-25 23:31:41 +01:00
Carles Pina Estany and GitHub
eb81a2a185
Merge pull request #35 from oshdev/patch-1
...
fix(target-branch): historical branch name
2021-10-25 23:06:42 +01:00
Carles Pina i Estany
af82da7f2b
Use indentation consistenly
2021-10-25 23:03:05 +01:00
Carles Pina Estany and GitHub
d4122690a7
Merge pull request #41 from DevOpenWRT-Router/main
...
Target directory on destination repo
2021-10-25 22:55:10 +01:00
Carles Pina Estany and GitHub
2ebe0cc15f
Merge pull request #29 from HonQii/patch-1
...
Fix could not read Username for 'https://github.com ' error
2021-05-08 12:34:02 +02:00
Carles Pina Estany and GitHub
940a2857e5
Merge pull request #27 from JamesMCo/main
...
Add argument to specify name used in commits
2021-04-29 23:45:48 +02:00
Carles Pina i Estany
5c472514b3
Better use "$" to make it clear that this is going to be escaped
2021-04-25 17:59:53 +01:00
Carles Pina i Estany
cb0e53ecbe
Try to let users use GITHU_REF variable in the commit message
2021-04-25 17:53:31 +01:00
Carles Pina i Estany
8e9bfb00e6
Improve error message
2021-04-25 11:26:51 +01:00
Carles Pina i Estany
9b1e7ac6a5
Fix indentation (spaces)
2021-04-25 11:22:41 +01:00
Carles Pina i Estany
3a9dc3773c
Uses "main" branch instead of "master" for the examples, instructions, etc.
2021-04-25 11:09:13 +01:00
Carles Pina i Estany
88287f5737
Fix markdown
2021-04-25 10:59:12 +01:00
Carles Pina i Estany
85a0ac138a
Improve the error message
2021-04-25 10:57:58 +01:00
Carles Pina i Estany
bb3e4ea525
Add a check in entrypoint.sh to help users if the source directory does not exist
...
Updated documentation
2021-04-25 10:55:07 +01:00
Carles Pina i Estany
f30895310c
Fixed issue deleting files that need to be deleted from the target repo
...
See #16
2020-12-02 20:04:04 +00:00
Carles Pina i Estany
f5a3797d5b
Fix typo
2020-12-02 16:21:05 +00:00
Carles Pina i Estany
ec672cbc0a
Fixed deleting files from $CLONE_DIR (keep $CLONE_DIR/.git and deletes files like $CLONE_DIR/.gitattributes)
...
Thanks @ruuk for the report
2020-12-02 16:16:04 +00:00
Carles Pina i Estany
e7bc77c21d
Added verbose
2020-12-02 15:51:35 +00:00
Carles Pina i Estany
3d4da26ca5
Fixed problem deleting files starting with .git (e.g. .gitattributes)
2020-12-02 15:43:05 +00:00
Carles Pina i Estany
976916018a
Improve comment
2020-11-10 09:01:07 +00:00
Carles Pina Estany and GitHub
ea29b5b83f
Fix pushing the generated files into a branch that does not exist
...
allow to push into remote, even if brach does not exist
2020-11-10 09:00:30 +00:00
Carles Pina Estany and GitHub
edbe7a0efc
Use long command option instead of short and adds comment
...
Thanks @TomasVotruba
2020-11-10 08:59:28 +00:00
Carles Pina i Estany
eae1cf2f70
Avoid failing if no changes are to be pushed
2020-11-05 17:43:46 +00:00
Carles Pina i Estany
61d842d233
Fix typo in a message
2020-11-05 17:39:27 +00:00
Carles Pina i Estany
c26a144ee1
Fix substitution. Works with any strings (not as sed)
...
Less portable but tested with Busybox shell used in this image
2020-11-04 16:45:08 +00:00
Carles Pina i Estany
79e1b1b20b
Fix sed (had the missing slash but now replaces it every time)
2020-11-04 16:28:43 +00:00
Carles Pina i Estany
c6421df38d
Fix "typo" in yml
2020-11-04 16:26:43 +00:00
Carles Pina i Estany
cfb5cb5949
Allow to pass the commit message
2020-11-04 16:23:02 +00:00
Carles Pina i Estany
5a00473a58
Align names of the variables in entrypoint.sh with the names of the variables in action.yml
2020-11-04 15:27:20 +00:00
Carles Pina i Estany
61d0646c22
Improve documentation
2020-11-04 15:20:40 +00:00
Carles Pina i Estany
da21c6b08d
set options to make it easier to debug if a command fails
...
Make use of optional arguments on action.yml in order to avoid testing
against an undefined variable
2020-11-04 15:02:44 +00:00
Carles Pina i Estany
884b652fa7
Update alpine to latest released
2020-11-04 14:41:02 +00:00
Carles Pina i Estany
5d8dc0fe1a
Add double quotes
...
TARGET_BRANCH cannot have spaces currently but adding double shell for
consistent style.
GITHUB_USERNAME probably cannot have spaces but just for consistency
(and in case that it can have spaces)
2020-09-23 09:53:20 +01:00
Carles Pina Estany and GitHub
160c443d67
Merge pull request #6 from smellman/master
...
supports github branch renaming (push to another branch that is not master)
2020-09-23 09:50:31 +01:00
Carles Pina Estany and GitHub
db81c54e24
Merge pull request #4 from dmnemec/master
...
allow separate author and destination repository
2020-08-12 15:04:22 +02:00
Carles Pina Estany and GitHub
ece5884654
Merge pull request #2 from eibanez/master
...
Delete trailing parenthesis
2020-07-29 10:02:31 +02:00
Carles Pina i Estany
637125d225
Use consistently USER_EMAIL
...
fixes #1
2020-06-08 23:49:19 +02:00
Carles Pina i Estany
811756fa00
Updates README.md
2020-04-03 23:10:49 +02:00
Carles Pina Estany and GitHub
d5460a280b
Improves README
2020-03-29 21:46:29 +02:00
Carles Pina Estany and GitHub
ea53262753
Adds branding (icon, color)
2020-03-29 21:30:17 +02:00
cpina
01ab9dd0b3
Simplifies commit message
2020-03-29 21:02:21 +02:00
cpina
57ac4a1864
Updates README and improves commit message of the generated message
2020-03-29 20:59:13 +02:00
cpina
60f023a31a
Fixes deleting too many files
2020-03-29 17:49:16 +02:00
cpina
062af890e7
it uses busybox, --directory doesn't exist
2020-03-29 17:36:01 +02:00
cpina
f6ed973d7b
Creates a directory, not a file
2020-03-29 17:34:09 +02:00
cpina
30ad5ed618
Does better job with the directory creation, naming, etc.
2020-03-29 17:30:55 +02:00
cpina
0f0c204dae
Updates and avoids having the email hardcoded
2020-03-29 17:20:35 +02:00
cpina
38563e1748
Defines variable
2020-03-29 17:13:00 +02:00
cpina
8956a2d3f2
Updates file adding the code to push
2020-03-29 17:07:19 +02:00
cpina
d17570f574
Testing github action
2020-03-29 16:44:47 +02:00
Carles Pina Estany and GitHub
4f3ef03b3a
Initial commit
2020-03-29 16:37:03 +02:00