Commit Graph

105 Commits

Author SHA1 Message Date
Elliot
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
Pascal Zimmermann
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
Daniil Suvorov
67c1a687d9 fix: github_token and github_url optional 2022-06-28 13:40:34 +03:00
Pascal Zimmermann
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
Pascal Zimmermann
e5f70b0f07 * Add force with lease support
* Update the documentation
2022-06-25 23:30:43 +02:00
Pascal Zimmermann
492de9080c Merge pull request #129 from ad-m/add-wrongly-removed-code
Fix removed code lines
2022-06-15 15:52:30 +02:00
Pascal Zimmermann
828ee9b9ba Fix removed code lines 2022-06-15 15:48:45 +02:00
Pascal Zimmermann
e69c0c047e Add deploy key functionality (#120)
* Add deploy key functionality
2022-06-15 13:46:08 +02:00
Pascal Zimmermann
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
Pascal Zimmermann
6ca7df8e1c Revert "Use --force-with-lease instead of --force" 2022-05-05 06:27:49 +02:00
Pascal Zimmermann
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
Pascal Zimmermann
21d44fe927 Revert "Add deploy key functionality (#115)" (#119)
This reverts commit d4a6a7883a.
2022-05-04 13:04:15 +02:00
Pascal Zimmermann
d4a6a7883a Add deploy key functionality (#115)
* Add deploy key functionality
2022-05-04 13:00:55 +02:00
Pascal Zimmermann
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
Pascal Zimmermann
887c31bd83 Update the documentation (#114) 2022-04-25 01:32:41 +02:00
Pascal Zimmermann
f579af7904 Update the urls (#117) 2022-04-24 22:51:40 +02:00
abroskin
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
Pascal Zimmermann
a3fd843e49 Add a PR validation action (#109) 2022-02-23 08:13:22 +01:00
Adam Dobrawy
7257a3a6d5 Revert "Add GitHub Enterprise support (#106)" (#107)
This reverts commit a7824cd3a2.
2022-02-18 10:30:56 +01:00
Pascal Zimmermann
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
Tonye Jack
8407731efe Fixed typo (#98)
* Fixed typo

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

* Update README.md

* Update README.md
2021-07-30 10:14:01 +02:00
Adam Dobrawy
65392840bd how fix syntax in action.yml
See #91
2021-05-24 11:59:14 +02:00
Tonye Jack
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
Adam Dobrawy
057a6ba835 Fix passing token to GitHub 2021-01-06 23:37:02 +01:00
Adam Dobrawy
821c9b7de9 Add logging full URL 2021-01-05 04:46:06 +01:00
Adam Dobrawy
13c185d93e Fix missing repository field 2021-01-04 09:45:13 +01:00
Adam Dobrawy
f6d8fb7302 Remove default from action configuration 2021-01-04 07:41:39 +01:00
Adam Dobrawy
968e14041f Discovery default branch for repository (#75) 2021-01-04 07:16:22 +01:00
Mike Rogers
3a0787a996 Document the new default branch (#74) 2021-01-03 04:39:35 +01:00
Adam Dobrawy
1bf41a92a1 Revert "refactor(start): use @actions/exec (#47)" (#73)
This reverts commit c52e809b56.
2021-01-02 06:50:13 +01:00
jjangga0214
c52e809b56 refactor(start): use @actions/exec (#47) 2021-01-02 06:29:28 +01:00
Juan Carlos Pineda
b7582201c8 Change default branch (#69) 2021-01-02 06:29:08 +01:00
Chris Carini
275307750b Update README.md example step to use github-actions[bot] user (#72)
See the differences between these two 'users' here: https://github.com/actions/checkout/issues/13#issuecomment-724415212

As well as some investigation here: https://github.community/t/github-actions-bot-email-address/17204

Also changing the `default` in the docs to reflect the actual default specified in the `actions.yml` file.
2021-01-02 06:28:49 +01:00
Jason
e65d44d242 Use @v2 instead of @master (#64) 2021-01-02 06:27:50 +01:00
Yuxiaoy1
b007e7b818 add cacompatibility for gh latest main branch (#66) 2020-10-13 23:46:47 +02:00
Adam Dobrawy
40bf560936 Use master checkout (#53) v0.6.0 2020-05-26 22:42:09 +02:00
DougCh
a53759b2bf Add checkout options to the example (#46)
These two lines are critical to the function of the Action, please add to the readme so the fix in #44 doesn't get lost.
2020-05-26 22:41:49 +02:00
Kevin Del Castillo
f18534c0e2 Fix undefined variable TAGS with INPUT_TAGS (#54) 2020-05-04 06:44:28 +02:00
Adam Dobrawy
fe38f0a751 Update start.js for pass code from start.sh (#45) 2020-02-04 00:51:06 +01:00
Oliver Kopp
19caa5c351 Merge pull request #34 from Woile/master
Make tags optional
2020-01-02 07:45:51 +01:00
Santiago Fraire Willemoës
13f1d99dc9 docs: added information about tags to README 2019-11-22 12:39:09 +01:00
Santiago Fraire Willemoës
508672e3d6 feat: tags is now configurable 2019-11-22 12:30:46 +01:00
Santiago Fraire Willemoës
dbccd851c4 add tags 2019-11-22 12:28:11 +01:00
Adam Dobrawy
02b0b75d44 Merge pull request #31 from ad-m/fix-start-sh
Fix start.sh path
2019-11-13 03:53:21 +01:00
Adam Dobrawy
48c9f78853 Fix start.sh path 2019-11-12 23:36:27 +01:00
Adam Dobrawy
1a31adf02b Merge pull request #29 from ad-m/skip-docker
Skip Docker in manifest
2019-11-12 19:31:49 +01:00
Adam Dobrawy
0dbc0a9736 Drop Docker image 2019-11-12 19:30:56 +01:00
Adam Dobrawy
d3c5a1eaed Use nodejs to start bash 2019-11-12 19:29:07 +01:00