create-preview-workflow 1.1.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -51,7 +51,8 @@ function getGitHubInfo() {
|
|
|
51
51
|
{
|
|
52
52
|
type: "text",
|
|
53
53
|
name: "org",
|
|
54
|
-
message:
|
|
54
|
+
message:
|
|
55
|
+
"Enter the email address (registered at Preview) or the Organization name:",
|
|
55
56
|
},
|
|
56
57
|
]);
|
|
57
58
|
|
|
@@ -69,7 +70,7 @@ function getGitHubInfo() {
|
|
|
69
70
|
.filter((file) => fs.statSync(path.join(sourceDir, file)).isFile());
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
const baseUrl = `http://preview.neurasense.io
|
|
73
|
+
const baseUrl = `http://preview.neurasense.io/${username}@${repo}`;
|
|
73
74
|
const urls = fileNames.map((file) => `${baseUrl}/${file}`);
|
|
74
75
|
|
|
75
76
|
if (urls.length > 0) {
|
|
@@ -117,7 +118,7 @@ jobs:
|
|
|
117
118
|
|
|
118
119
|
- name: Call Preview Webhook
|
|
119
120
|
run: |
|
|
120
|
-
curl -X POST http://
|
|
121
|
+
curl -X POST http://preview.neurasense.io/deploy \\
|
|
121
122
|
-H "Content-Type: application/json" \\
|
|
122
123
|
-d "\$(jq -n \\
|
|
123
124
|
--arg repo "\${{ github.repository }}" \\
|