Commit Graph

107 Commits

Author SHA1 Message Date
James M. Greene
b865ababeb Remove circular JSON references for error debugging 2023-07-10 14:58:49 -05:00
Fabian Aguilar Gomez
9cf15d70b7 Update deployment.js 2023-06-15 16:57:51 -05:00
James M. Greene
2c56c1e0f7 Tweak wording 2023-06-06 09:40:22 -05:00
Greta Parks
2fb2bbeb02 Check artifact size and warn if too large 2023-05-22 17:00:13 +00:00
James M. Greene
2905629ea4 Merge branch 'main' into timeout-fix 2023-05-16 10:28:30 -05:00
James M. Greene
ff6c51e54c Remove period to avoid messing up URL 2023-05-16 10:15:22 -05:00
James M. Greene
b26c4cb790 Add a support note to the deployment creation error if using GHES 2023-05-16 10:13:05 -05:00
Greta Parks
21b085af5f little rename for nuance 2023-05-12 16:54:50 +00:00
Greta Parks
ccca7e9d96 Some fixes 2023-05-12 16:28:50 +00:00
Greta Parks
c02d64fe5c Revert "fix error count lies and clean up tests a bit"
This reverts commit 3e2c26d7d5.
2023-05-12 15:53:50 +00:00
Greta Parks
dcb366ca66 Update src/internal/deployment.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2023-05-12 09:40:31 -06:00
Greta Parks
3e2c26d7d5 fix error count lies and clean up tests a bit 2023-05-11 20:38:18 +00:00
Greta Parks
054faf7e6d enforce a max timeout 2023-05-11 18:39:06 +00:00
Greta Parks
bacaae7379 add warning and test for timeout over maximum 2023-05-09 21:26:22 +00:00
James M. Greene
b39c421b98 Remove deprecated input parameters 2023-04-18 01:13:17 -05:00
James M. Greene
6657d340c9 Rename 'functions' directory to 'internal' 2023-04-18 00:32:13 -05:00
grantbirki
36f9337a64 test early exit on a deployment cancel request 2023-04-14 21:20:52 +01:00
grantbirki
3194543231 update tests 2023-04-14 20:58:13 +01:00
grantbirki
515e39edbf structuring tests and functions 2023-04-14 20:43:44 +01:00
grantbirki
f1d846dabc move test file 2023-04-13 22:59:58 +01:00
Jess Bees
b254707f5c Update the deployment API endpoints used by the api-client module 2023-03-17 11:54:20 -05:00
James M. Greene
30c6e00b35 Revert shifted API usage from https://github.com/actions/deploy-pages/pull/136
Fixes https://github.com/actions/deploy-pages/issues/137
2023-03-17 11:18:26 -05:00
Jess Bees
73594fd4fc Update the deployment API endpoints used by the api-client module 2023-03-15 16:01:03 -04:00
James M. Greene
a8d1a4cdd2 Prefer elevated RequestError#status, if present 2023-03-09 08:23:21 -06:00
James M. Greene
7e85efa568 Remove redundant safe navigation operators 2023-03-09 08:20:32 -06:00
James M. Greene
f824564d16 Make sure we received a deployment response before setting deploymentInfo 2023-03-09 08:19:19 -06:00
James M. Greene
360f95f104 Extract response processing logic from Artifact Exchange method 2023-03-09 07:49:50 -06:00
James M. Greene
54e5e8c886 Update error handling for artifact exchange 2023-03-08 19:43:11 -06:00
James M. Greene
b4ef3c2b4b Add test for cancellation 2023-03-06 22:12:58 -06:00
James M. Greene
b88aa87bba Consolidate before functions 2023-03-06 22:09:40 -06:00
James M. Greene
93872af9c4 Update test with module wrapper 2023-03-06 22:08:01 -06:00
James M. Greene
6f75b9951c Lots of test updates 2023-03-06 22:04:25 -06:00
James M. Greene
c981f59b6f Tweak verbosity levels 2023-03-06 22:03:56 -06:00
James M. Greene
c8c985cff1 Defer looking up RUNTIME_URL until JIT 2023-03-05 14:36:05 -06:00
James M. Greene
f3ccae1b04 Update status handling function for Octokit request 2023-03-03 15:43:35 -06:00
James M. Greene
36aae3e29a Update Octokit usage to use request.js for deployment creation 2023-02-23 20:18:48 -06:00
James M. Greene
4d06ee6166 Update Deployment class methods to enforce presence of this.deploymentInfo 2023-02-22 14:11:03 -06:00
James M. Greene
65f1527542 Fix bad references, run the formatter 2023-02-22 08:26:42 -06:00
James M. Greene
594fd8fbbf Remove axios reference from code 2023-02-22 08:24:49 -06:00
James M. Greene
29db692e2d JS polishing 2023-02-22 08:23:39 -06:00
James M. Greene
f577a41201 Swap out the Pages Deployment canceling interaction for the wrapped one from api-client 2023-02-22 08:23:03 -06:00
James M. Greene
a0faa043a9 Swap out the Pages Deployment status check interaction for the wrapped one from api-client 2023-02-22 08:22:23 -06:00
James M. Greene
12b8ec3b9b Move setting 'page_url' output variable to top-level index 2023-02-22 08:18:54 -06:00
James M. Greene
e7873ec09d Swap out the Pages Deployment creation interaction for the wrapped one from api-client
Also remove requestedDeployment field in favor of deploymentInfo.pending
2023-02-22 08:15:23 -06:00
James M. Greene
c2918206ce Swap out the Artifact Exchange interaction for the wrapped one from api-client 2023-02-22 08:05:32 -06:00
James M. Greene
20fe504b3b Clarify references to Action ID and Workflow Run ID in logging 2023-02-22 08:01:01 -06:00
James M. Greene
93c1fe6967 Add a module to wrap GitHub REST API and Actions Runtime API requests
Critical benefit of doing this is inheriting the proxy-honoring behavior from the @actions/http-client and @actions/github libraries
2023-02-22 07:55:03 -06:00
James M. Greene
cecb121fe2 Merge branch 'main' into patch-1 2022-11-30 10:33:09 -06:00
Shengyu Zhang
d67909bb68 Use correct permission name
See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
2022-12-01 00:21:00 +08:00
James M. Greene
3ffff52a9c Add repo settings URL to help users react to error message 2022-11-17 12:40:28 -06:00