Commit Graph

72 Commits

Author SHA1 Message Date
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
James M. Greene
b742641b90 Correct organization references 2022-09-09 16:59:57 -05:00
Yoann Chaudet
c7c77bb21c Explicitly handle cancellation on errors 2022-08-23 21:32:40 -07:00
Yoann Chaudet
4865e84b02 Bring back the formatter 2022-08-23 17:19:21 -07:00
yimysty
8daa1e0ead add syntax sugar back 2022-08-04 17:11:26 -07:00
yimysty
99f9079292 roll into right node syntax 2022-08-04 17:09:46 -07:00
yimysty
7f629c4ce0 apply the syntax 2022-08-04 17:04:26 -07:00
yimysty
35e615a00c check if it's due to "." 2022-08-04 16:56:13 -07:00
yimysty
462df77e16 add more log to debug 2022-08-04 16:52:07 -07:00
yimysty
9ebae0d26b try print error message 2022-08-04 16:25:55 -07:00
yimysty
d0b379e44d move artifact url out of context 2022-08-04 16:23:15 -07:00
yimysty
225abf7840 increase test timeout 2022-08-04 16:13:28 -07:00
yimysty
1f0422c0df add some debug log? 2022-08-04 16:07:20 -07:00
yimysty
85b0d1617e moke get artifact name 2022-08-04 16:02:46 -07:00
yimysty
3e976523d7 adjust pages hard code endpoint + fix artifact look up 2022-08-04 15:43:58 -07:00
Mingzi
1ae5d2452b Update src/deployment.js
Co-authored-by: Yoann Chaudet <yoannchaudet@github.com>
2022-06-29 10:16:32 -07:00
yimysty
e2219a89b1 fix broken test cases 2022-06-28 18:18:42 -07:00
yimysty
72b116b825 fix unintended changes 2022-06-28 18:01:48 -07:00
yimysty
11a13019c2 adjust debugging message 2022-06-28 17:58:10 -07:00
yimysty
801d74db09 switch to console.log 2022-06-28 17:55:21 -07:00
yimysty
64c69a5fdf normalize error message 2022-06-28 17:50:08 -07:00
yimysty
03d70e4a19 info stack trace 2022-06-28 17:44:21 -07:00
yimysty
c3d24faf75 info stack trace 2022-06-28 17:38:14 -07:00
yimysty
2b0c6eaf67 try output stacktrace as well 2022-06-28 17:35:03 -07:00
yimysty
358b034ef8 improve error message 2022-06-28 16:08:07 -07:00