Commit Graph

146 Commits

Author SHA1 Message Date
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
James M. Greene
9b641caa4a Fix artifact name defaulting behavior 2022-11-16 20:02:14 -06:00
Jess Bees
dd5e0e9d1c Deprecate 'emit_telemetry' and remove its feature
Since we emit telemetry in a different way, we can remove this feature
from the action and prevent unintentional misuse.
2022-11-04 12:19:31 -04:00
James M. Greene
b388ef8bf2 Remove unnecessary first-party use of Regenerator 2022-09-26 14:47:48 -05:00
James M. Greene
6bbc94d747 Remove unused deps related to Babel 2022-09-16 23:14:27 -05:00
Jess Bees
1c52af2b34 Add optional 'conclusion' argument to emitTelemetry
If present, will include the value of `conclusion` with the telemetry
POST body (gh/gh needs a separate PR to recognize this)
2022-09-15 12:14:23 -04:00
James M. Greene
dd23652c5c Adhere to Prettier formatting 2022-09-09 18:51:35 -05:00
James M. Greene
ec456f786c Correct outdated reference 2022-09-09 18:50:08 -05:00
James M. Greene
b68f047ef0 Merge branch 'main' into upstream-preview-alpha 2022-09-09 18:49:17 -05:00
James M. Greene
f5fafd81c2 Remove '.only' from the new unit test 2022-09-09 18:46:36 -05:00
James M. Greene
d2d7f752d5 Add support for preview deployments 2022-09-09 18:44:03 -05:00
James M. Greene
ad109d8dbd Add failing test 2022-09-09 18:29:17 -05:00