Commit Graph

72 Commits

Author SHA1 Message Date
Carles Pina Estany
ac0bb2c8f9
Fix unsafe repository error (#65)
Mark the repository as safe.

It should be ok to do so in the action context because the vulnerability affects "multi-user shared machines" and this is a single-user Docker image. Details of why this is needed CVE-2022-24765: https://github.blog/2022-04-12-git-security-vulnerability-announced/

I will keep monitoring if there could be any problems and get in touch in you have more information.
2022-04-13 10:17:12 +02:00
Carles Pina i Estany
483689a71c Use {} in the variable expansion 2022-01-21 17:42:11 +01:00
Carles Pina i Estany
f5b6d14ea8 Simplify variable expansion 2022-01-20 23:30:55 +01:00
Carles Pina i Estany
9077ab5399 Improve error message 2021-12-15 00:13:36 +00:00
Carles Pina i Estany
23869efe3d Better handling of the git clone error 2021-12-15 00:09:49 +00:00
Carles Pina i Estany
331033bc0f Try a better way to report errors 2021-12-15 00:01:48 +00:00
Carles Pina i Estany
b8ba82a17f Fix typo 2021-12-14 23:48:39 +00:00
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
e7314057a0 Fix deleting of files when TARGET_DIRECTORY is not specified 2021-12-08 23:55:47 +01:00
Carles Pina i Estany
c200780764 Improve message 2021-12-08 23:33:53 +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
af82da7f2b Use indentation consistenly 2021-10-25 23:03:05 +01:00
Eliminater74
44d7a5c0f9
Update Fix 2021-08-31 06:04:57 -04:00
Eliminater74
2708e223bc
Update entrypoint.sh Cleanup 2021-08-29 18:15:51 -04:00
Eliminater74
ed4074dd02
Another fix 2021-08-29 09:30:34 -04:00
Eliminater74
52acf3c68c
fixme 2021-08-29 09:26:38 -04:00
Eliminater74
7a8c60c186
Add some fixes 2021-08-29 08:24:21 -04:00
Eliminater74
b646e274db
Update: entrypoint.sh 2021-08-20 20:54:32 -04:00
Eliminater74
67a3a057c8
Update: enterypoint.sh 2021-08-20 19:23:03 -04:00
Michael Ryan
520a9d8c28
Allows pushing to target directory in target repo
Signed-off-by: Eliminater74 <eliminater74@gmail.com>
2021-08-20 18:56:37 -04:00
Eliminater74
448b7dad95
Test FIX 2021-08-20 18:40:02 -04:00
Piotr Joński
84dc6cc070
Update entrypoint.sh 2021-06-24 09:00:58 +02:00
Piotr Joński
280163351f
Update entrypoint.sh 2021-06-24 08:59:20 +02:00
HonQi
6b89adc168
Fix could not read Username for 'https://github.com' error
Push to the repo of another account (such as an organization) may trigger this error. Clearly indicate the account name to avoid
2021-05-06 16:28:27 +08:00
James C
637a257cca
Add argument to specify name used in commits 2021-04-29 06:06:40 +01: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
3a9dc3773c Uses "main" branch instead of "master" for the examples, instructions, etc. 2021-04-25 11:09:13 +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
edbe7a0efc
Use long command option instead of short and adds comment
Thanks @TomasVotruba
2020-11-10 08:59:28 +00:00
Tomas Votruba
9852c86807
allow to push into remote, even if brach does not exist 2020-11-10 02:36:41 +01: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
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
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