130 Commits

Author SHA1 Message Date
9870d48124 Update the release process and setup the process to specify tags (#145)
* feat: Update the release process
* feat: Update the GH action checkout version
2024-03-10 20:39:20 +01:00
fcea09907c fix: Update the documentation (#160)
* fix: Update the documentation and remove the unsafe directory functionality
* docs: Adjust the used checkout version

Co-authored-by: Tonye Jack <jtonye@ymail.com>

---------

Co-authored-by: Tonye Jack <jtonye@ymail.com>
2024-01-22 09:19:38 +01:00
fc0cf17cf3 docs: Adjust the initial git write access documentation (#190)
* docs: Adjust the initial git write access documentation
* docs: Adjust the workflow scoped token permission documentation
Co-authored-by: Tonye Jack <jtonye@ymail.com>
---------

Co-authored-by: Tonye Jack <jtonye@ymail.com>
2024-01-15 08:13:27 +01:00
e0ae067286 feat: Add push to submodules support (#155) 2024-01-10 13:15:51 +01:00
c8e9166762 docs: Adjust the PAT and protected branch documentation (#174) 2023-12-03 19:58:18 +01:00
d91a481090 feat: Update the used NodeJS version to 20 (#184) v0.8.0 2023-10-07 11:43:19 +02:00
29f05e01bb docs: Document Github App Token support (#180)
docs: Adjust the GitHub App Token documentation
v0.7.0
2023-08-27 09:57:14 +02:00
9a2e3c14aa fix #177 (#178)
* Compatible with repository addresses using http protocol.

https protocol is used by default.
For special needs,  can set the URL to http:// or be compatible.

* Fixed exit-code error

in catch, the exit code should be fixed to-1
2023-07-28 22:01:56 +02:00
4150bf040c Revert "Update start.js (#175)" (#176)
This reverts commit f8e0bce133.
2023-07-27 22:03:00 +02:00
f8e0bce133 Update start.js (#175)
Compatible with repository addresses using http protocol.
2023-07-27 19:41:00 +02:00
d9117be7ca docs: Add protected branch support to the documentation (#171) 2023-06-06 08:21:35 +02:00
df39337088 *fix: Remove the user (#169)
*doc: Adjust the documentation
*fix: Add empty line at the end of the file
2023-05-21 14:10:24 +02:00
c361e2bb07 Revert "fix: Remove the user (#156)" (#168)
This reverts commit 75ba9fb1cf.
2023-05-18 10:13:05 +02:00
75ba9fb1cf fix: Remove the user (#156)
* fix: Remove the user
* doc: Adjust the documentation
* fix: Add empty line at the end of the file
2023-05-18 07:12:20 +02:00
0fafdd62b8 fix typo (#149) 2022-12-12 20:49:32 +01:00
552c074ed7 Update the documentation and the push process (#135)
* doc: Update the documentation and the push process
2022-10-31 08:55:44 +01:00
4dcce6dea3 Merge pull request #140 from kdambekalns/patch-1
Use node16 to run the action
2022-10-12 08:35:55 +02:00
b87afee92c Use node16 to run action
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
2022-10-11 23:38:16 +02:00
35284cf030 Merge pull request #138 from sleepypikachu/master
Add atomic push
2022-10-04 15:00:23 +02:00
00483b0482 Add option to control atomic switch 2022-10-04 13:38:53 +01:00
c9ef0a92e1 Merge pull request #128 from jackton1/patch-4
chore: remove redundant safe.directory configuration
2022-10-03 16:58:17 +02:00
bb3766ad6a Add atomic push
Since time elapses between the checkout the github workflow performs and the eventual push this action invokes the remote HEAD may have changed. If this is the case the HEAD update will be rejected but any tag (and their commits) will be pushed.

In general I think this operation should be atomic, either we push everything or we push nothing.

Force pushes still work the way you would expect (i.e. if we force the HEAD update with --atomic everything is still pushed)

This also protects from the situation where someone else has seized your tag name in the meantime but not updated your HEAD.

See git docs for more information - https://git-scm.com/docs/git-push#Documentation/git-push.txt---no-atomic
2022-09-02 10:53:40 +01:00
7e6f17c52d Merge branch 'master' into patch-4 2022-06-30 15:58:15 +02:00
9a46ba8d86 Merge pull request #134 from SevereCloud/patch-1
Update github_token and github_url to handle it as optional parameter
2022-06-28 18:48:33 +02:00
67c1a687d9 fix: github_token and github_url optional 2022-06-28 13:40:34 +03:00
6195df7871 Merge pull request #124 from ZPascal/add-force-with-lease-support
Add force with lease support
2022-06-26 00:02:58 +02:00
e5f70b0f07 * Add force with lease support
* Update the documentation
2022-06-25 23:30:43 +02:00
84236bda17 Merge branch 'master' into patch-4 2022-06-16 00:14:47 -04:00
492de9080c Merge pull request #129 from ad-m/add-wrongly-removed-code
Fix removed code lines
2022-06-15 15:52:30 +02:00
828ee9b9ba Fix removed code lines 2022-06-15 15:48:45 +02:00
e69c0c047e Add deploy key functionality (#120)
* Add deploy key functionality
2022-06-15 13:46:08 +02:00
f0a42d466f Update README.md 2022-06-14 14:26:50 -04:00
d403eb46ce chore: remove redundant safe-directory configuration
This has been resolved in the [checkout](https://github.com/actions/checkout/pull/770) action and would already be set by default.
2022-06-14 14:26:16 -04:00
dda7a419b6 Merge pull request #121 from ad-m/revert-80-patch-1
Revert "Use --force-with-lease instead of --force"
2022-05-05 06:30:47 +02:00
6ca7df8e1c Revert "Use --force-with-lease instead of --force" 2022-05-05 06:27:49 +02:00
f43881ed8c Merge pull request #80 from imba-tjd/patch-1
Use --force-with-lease instead of --force
2022-05-04 14:09:21 +02:00
21d44fe927 Revert "Add deploy key functionality (#115)" (#119)
This reverts commit d4a6a7883a.
2022-05-04 13:04:15 +02:00
d4a6a7883a Add deploy key functionality (#115)
* Add deploy key functionality
2022-05-04 13:00:55 +02:00
694e694af3 Add GitHub Enterprise support (#108)
* * Add GitHub url and GitHub Enterprise support
* Update the GitHub action

* Update build.yml

Remove push command

* Update the PR and remove the test mode

* Delete build-pr.yml

* Update README.md
2022-05-04 00:23:31 +02:00
887c31bd83 Update the documentation (#114) 2022-04-25 01:32:41 +02:00
f579af7904 Update the urls (#117) 2022-04-24 22:51:40 +02:00
6defe3bd9f Added workaround as suggested by the git itself (#112)
* Added workaround as suggested by the git itself

* Update start.sh

Co-authored-by: Pascal Zimmermann <Z_pascal@yahoo.de>

Co-authored-by: aleksandr.abroskin <aleksandr.abroskin@getmoss.com>
Co-authored-by: Adam Dobrawy <ad-m@users.noreply.github.com>
Co-authored-by: Pascal Zimmermann <Z_pascal@yahoo.de>
2022-04-15 01:32:33 +02:00
a3fd843e49 Add a PR validation action (#109) 2022-02-23 08:13:22 +01:00
7257a3a6d5 Revert "Add GitHub Enterprise support (#106)" (#107)
This reverts commit a7824cd3a2.
2022-02-18 10:30:56 +01:00
a7824cd3a2 Add GitHub Enterprise support (#106)
* Add GitHub url and GitHub Enterprise support

* Add review improvements

* Modify the default value to github.server_url
2022-02-18 10:26:44 +01:00
8407731efe Fixed typo (#98)
* Fixed typo

* Update README.md
2021-08-10 21:11:15 +02:00
3140f3af79 Update README.md (#93)
* Update README.md

* Update README.md

* Update README.md
2021-07-30 10:14:01 +02:00
65392840bd how fix syntax in action.yml
See #91
2021-05-24 11:59:14 +02:00
cbec6b6085 Added a default github_token (#91)
* Added a default github_token

* Update README.md

* Update README.md

* Update README.md

* Update action.yml

Co-authored-by: Adam Dobrawy <ad-m@users.noreply.github.com>

Co-authored-by: Adam Dobrawy <ad-m@users.noreply.github.com>
2021-05-24 11:32:22 +02:00
59160b8498 Use --force-with-lease instead of --force 2021-01-26 20:02:40 +08:00