Commit Graph

80 Commits

Author SHA1 Message Date
Carles Pina i Estany
bf166ff070 Enable shell debugging 2022-09-06 20:25:38 +01:00
Carles Pina i Estany
6cb505d32f Since we need to download only the last snapshot, it is not necessary to download the full commits history.
Thanks @wcota
PR: https://github.com/cpina/github-action-push-to-another-repository/pull/60
2022-09-06 00:18:35 +01:00
Carles Pina i Estany
9391058a7d Use the specified server to get the ssh fingerprints 2022-09-05 23:20:06 +01:00
Carles Pina i Estany
cda33b879b Action is more verbose (in order to help debugging) 2022-07-14 22:04:39 +01:00
g
f8f86f8d8f Fix if / then / else condition 2022-06-10 09:45:34 +02:00
Carles Pina i Estany
e9f59d2faa Fix command line being executed 2022-06-10 09:42:52 +02:00
Carles Pina i Estany
1ff90e4a65 Add support for SSH_DEPLOY_KEY variable (instead of only the personal access token) 2022-06-09 00:46:30 +02:00
Carles Pina i Estany
aa2fdffb28 Use the correct variable on git clone of the destination repository
fixes #68
2022-05-27 09:19:02 +02:00
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