Commit Graph

247 Commits

Author SHA1 Message Date
Sam
7201b4a811
Typographical Error (#1197)
Update Typo in documentation
2022-08-24 09:31:09 -04:00
JamesIves
60692f1fe1 Deploying to dev from @ JamesIves/github-pages-deploy-action@698cf315eb 🚀 2022-08-21 15:35:16 +00:00
JamesIves
698cf315eb Deploying to dev from @ JamesIves/github-pages-deploy-action@9c70de165e 🚀 2022-08-18 13:25:19 +00:00
James Ives
09a5452132 docs: Updated docs to remove workspace 2022-08-17 08:35:29 -04:00
JamesIves
b7b8bb2c63 Deploying to dev from @ JamesIves/github-pages-deploy-action@b9d2c9120b 🚀 2022-08-17 12:23:56 +00:00
JamesIves
b9d2c9120b Deploying to dev from @ JamesIves/github-pages-deploy-action@e690e12c5f 🚀 2022-08-15 05:25:53 +00:00
James Ives
f3034a77a1 Update README.md 2022-07-26 21:46:26 -04:00
James Ives
de9f21a8fb
docs: Improve documentation 2022-07-26 10:58:12 -04:00
JamesIves
07bd3b7dbb Deploying to dev from @ JamesIves/github-pages-deploy-action@8b4d536833 🚀 2022-07-24 15:35:51 +00:00
JamesIves
976c0c8faa Deploying to dev from @ JamesIves/github-pages-deploy-action@6a0cc4d0b5 🚀 2022-07-17 15:34:45 +00:00
German
079ec0e130
Adding tag option to action (#1142)
* Adding tag option to action

* Avoiding adding tag if the remote name is not used.

* Adding unit tests

* Update readme.

* Update readme part 2

* Adding changes from the code review

* removing references to deleted parameters

* removing space
2022-07-17 09:33:00 -04:00
James Ives
face23897f Prettier ignore 2022-06-26 09:00:19 -04:00
Nick McCurdy
95ff531c09
Use major version tags (#1152) 2022-06-26 08:57:54 -04:00
Nick McCurdy
c0e8d739fd
Set default branch to gh-pages (fix #1151) (#1155)
* Set default branch to gh-pages (fix #1151)

* Fix documented requirement of branch
2022-06-26 08:51:18 -04:00
JamesIves
f7f029d32e Deploying to dev from @ JamesIves/github-pages-deploy-action@b6e885503b 🚀 2022-06-26 02:36:06 +00:00
JamesIves
8728dd1b48 Deploying to dev from @ JamesIves/github-pages-deploy-action@f86c712e7c 🚀 2022-06-26 02:22:53 +00:00
JamesIves
644cb35a1b Deploying to dev from @ JamesIves/github-pages-deploy-action@fea0c86602 🚀 2022-06-24 17:42:13 +00:00
JamesIves
c278703585 Deploying to dev from @ JamesIves/github-pages-deploy-action@2305bd1841 🚀 2022-06-16 15:36:33 +00:00
JamesIves
206bab8152 Deploying to dev from @ JamesIves/github-pages-deploy-action@1eeb747600 🚀 2022-06-02 15:37:26 +00:00
JamesIves
1eeb747600 Deploying to dev from @ JamesIves/github-pages-deploy-action@d4797258ab 🚀 2022-05-31 15:38:13 +00:00
JamesIves
d4797258ab Deploying to dev from @ JamesIves/github-pages-deploy-action@eb69eb20f5 🚀 2022-05-20 16:49:43 +00:00
James Ives
eb69eb20f5
Update README.md 2022-05-20 12:48:51 -04:00
James Ives
a8cb892b4a
Updated permission set in README 2022-05-20 12:48:22 -04:00
James Ives
4f06c7354f
Update README.md 2022-05-04 17:18:33 -04:00
James Ives
8b5fe4ae7f
Update README.md 2022-05-04 17:18:10 -04:00
James Ives
a1af6fb970
Update README.md 2022-05-04 17:17:35 -04:00
James Ives
c0751bde8c Update README.md 2022-04-27 09:17:13 -04:00
James Ives
e6c302f297 Update README.md 2022-04-04 09:28:29 -04:00
Ross Williams
95f8a2cd05
Resolve simultaneous deployments with rebase (#1054)
* Return early from dry run

Determining whether to create a merge commit would elicit a nested
conditional, which could be hard to parse for a human reader. This is
avoided by returning early as soon as possible for a dry run.

This also resolves the erroneous 'changes committed' message when no
changes were actually committed because of the dry run. A message
specific to dry-run is logged instead.

* Add force parameter to action interface

Existing behaviour is equivalent to force=true, so the default value is
true.

* Implement pull+rebase procedure

* Declare force parameter in action

* Detect both rejection syntaxes

* Return both stdout and stderr from execute

* Ignore non-zero exit status on push

* Remove unnecessary error catch

* Fetch and rebase in separate steps

* Explicitly bind incoming branch

I think the fetch will update the origin/gh-pages branch but not the
gh-pages branch, despite requesting gh-pages. This means that when I
later attempt to rebase the temp branch on top of the gh-pages branch,
there will be nothing to do, because that's already where it is.

* Implement attempt limit

I don't expect this to ever require more than one attempt in production,
but in theory it's possible that this procedure could loop forever.

We would need to keep fetching and rebasing if changes keep being added
to the remote. In practice, I believe this would only happen if there
are lots of workflows simultaneously deploying to the same branch, all
using this action. In this case only one would be able to secure a lock
at a time, leading to the total number of attempts being equal to the
number of simultaneous deployments, assuming each deployment makes each
attempt at the exact same time.

The limit may need to be increased or even be configurable, but 3 should
cover most uses.

* Update tests for execute output split

* Document 'force' parameter

* Create integration test for rebase procedure

This test is composed of 3 jobs.

The first two jobs run simultaneously, and as such both depend on the
previous integration test only. The final job cleans up afterwards, and
depends on both of the prior jobs.

The two jobs are identical except that they both create a temporary file
in a different location. This is to ensure that they conflict. Correctly
resolving this conflict by rebasing one deployment over the other,
resulting in a deployment containing both files, indicates a successful
test.
2022-04-04 07:18:27 -04:00
Chongyi Zheng
bda8ff9021
Use checkout@v3 in example config (#1053) 2022-03-12 10:39:58 -05:00
Andi Pätzold
f6fcc79447
Typos & Grammar in README (#1042)
* Typos & grammar in README

* Format tables
2022-02-20 13:51:16 -05:00
James Ives
b284fae450 Merge branch 'dev' of https://github.com/JamesIves/github-pages-deploy-action into dev 2022-02-16 09:57:14 -05:00
James Ives
c45c4e010a Update README.md 2022-02-16 09:57:07 -05:00
James Ives
76a601a392
Update README.md 2022-02-12 16:18:43 -05:00
James Ives
32b51ecac7 Update README.md 2022-01-31 08:17:10 -05:00
JamesIves
261a89f974 Deploying to dev from @ JamesIves/github-pages-deploy-action@375f7e6220 🚀 2022-01-24 15:39:20 +00:00
James Ives
8def1cdfbf
Update README.md 2022-01-14 08:25:47 -05:00
James Ives
714df4415f
Adds concurrency documentation 2022-01-14 08:25:22 -05:00
James Ives
db9290180a
Update README.md 2022-01-13 11:36:02 -05:00
JamesIves
2a8d06b7a5 Deploying to dev from @ JamesIves/github-pages-deploy-action@f75d2c91c6 🚀 2022-01-13 15:41:25 +00:00
JamesIves
f75d2c91c6 Deploying to dev from @ JamesIves/github-pages-deploy-action@f47bc81799 🚀 2022-01-12 15:15:09 +00:00
James Ives
8e8fadf86d
Update README.md 2022-01-12 08:30:49 -05:00
James Ives
5dd62cac2d
Update README.md 2022-01-12 08:02:16 -05:00
JamesIves
a4083f648d Deploying to dev from @ JamesIves/github-pages-deploy-action@d514a16587 🚀 2022-01-12 13:01:40 +00:00
James Ives
1a965ca105
Move sponsorship section higher 2022-01-12 07:54:58 -05:00
James Ives
8b208a732f Update README.md 2022-01-10 08:34:12 -05:00
James Ives
f9ac38d93f Adds versioning change 2022-01-10 08:32:58 -05:00
James Ives
6520cf37a3 Update README.md 2022-01-09 11:10:17 -05:00
James Ives
7f5f01a457 Update README.md 2022-01-06 10:11:51 -05:00
James Ives
a7cf017c75
Ignore Case (#987)
* Update git.ts

* Formatting

* formatting

* Tests
2022-01-06 09:50:18 -05:00