Commit Graph

131 Commits (main)

Author SHA1 Message Date
Carles Pina i Estany 07c4d7b3de Add workaround for https://github.com/cpina/github-action-push-to-another-repository/issues/103 2023-05-19 23:31:53 +02:00
Carles Pina i Estany b2e2c48ca5 Fix error if create-target-branch-if-needed is used and the target branch already existed 2023-05-19 16:47:16 +02:00
Carles Pina i Estany d63a102c8f Update comment and output 2023-05-19 16:28:33 +02:00
Carles Pina i Estany cbe757f8d8 Change indentation, add comment, use "git switch -c" instead of "git checkout -b" 2023-05-01 00:03:52 +02:00
Damien Cornu 33585ea95a Create branch if needed option 2023-04-25 15:16:26 +02:00
Carles Pina Estany 0a14457bb2
Enable git lfs (#98) 2023-02-25 21:58:06 +00:00
Carles Pina Estany 9e487f2958
Update README.md: add links to the documentation (#89) 2022-09-26 23:44:58 +01:00
Carles Pina Estany f4b9c90516
Add issue template (#88) 2022-09-21 17:33:41 +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 74596b72fa Link to the formatted documentation 2022-09-05 23:33: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 Estany e775fb8544
Update issue templates 2022-07-28 12:03:10 +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 ab68811c3a Merge branch 'ssh-deploy-key' 2022-06-09 21:20:39 +02:00
Carles Pina i Estany b5ac509f7b Update README.md with deploy ssh keys documentation 2022-06-09 21:19:29 +02:00
Carles Pina i Estany 47ce62aef3 Updates README.md 2022-06-09 08:58:06 +02:00
Carles Pina Estany 1cdcd11404
Update README with a reference to the new branch deploying with SSH keys 2022-06-09 00:48:53 +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 f973f49c62 Add link to a related action 2022-06-08 21:26:31 +02:00
Carles Pina i Estany 3f9ba1ff0a Improve README.md with details of the PAT 2022-06-08 21:23:17 +02:00
Carles Pina i Estany 9543f7e15d Use repository stable
Alpine's Edge was used when a newer git version was needed. Now the
stable one is new enough
2022-05-27 09:24:11 +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 084156bc22 Rename so it can be published (hopefully) 2022-01-20 23:47:19 +01:00
Carles Pina i Estany 418e6e7a36 Merge branch 'main' of github.com:cpina/github-action-push-to-another-repository into main 2022-01-20 23:31:50 +01:00
Carles Pina i Estany f5b6d14ea8 Simplify variable expansion 2022-01-20 23:30:55 +01:00
Carles Pina Estany 164a872083
Merge pull request #51 from nedbat/nedbat/fix-readme
README: two fixes from target-directory work
2021-12-28 20:39:26 +00:00
Ned Batchelder 2e729bfae7 README: two fixes from target-directory work
1. The sentence about `ORIGIN_COMMIT` should be part of the description
   of `commit-message`.

2. The title of the repo is still `github-action-push-to-another-repository`.
2021-12-28 06:25:56 -05: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 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 6e36e20d0e
Merge pull request #44 from rottencandy/patch-2
Update documentation for target-branch
2021-11-10 08:58:48 +01:00
Mohammed Saud cdae6bf3fc
Update documentation for target-branch
Target branch was defaulted to main in b97d556c
But the readme documentation was not updated.
2021-11-10 13:11:24 +05:30
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 eb81a2a185
Merge pull request #35 from oshdev/patch-1
fix(target-branch): historical branch name
2021-10-25 23:06:42 +01:00