create-preview-workflow 1.2.0 → 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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function getGitHubInfo() {
|
|
|
70
70
|
.filter((file) => fs.statSync(path.join(sourceDir, file)).isFile());
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
const baseUrl = `http://preview.neurasense.io
|
|
73
|
+
const baseUrl = `http://preview.neurasense.io/${username}@${repo}`;
|
|
74
74
|
const urls = fileNames.map((file) => `${baseUrl}/${file}`);
|
|
75
75
|
|
|
76
76
|
if (urls.length > 0) {
|
|
@@ -118,7 +118,7 @@ jobs:
|
|
|
118
118
|
|
|
119
119
|
- name: Call Preview Webhook
|
|
120
120
|
run: |
|
|
121
|
-
curl -X POST http://
|
|
121
|
+
curl -X POST http://preview.neurasense.io/deploy \\
|
|
122
122
|
-H "Content-Type: application/json" \\
|
|
123
123
|
-d "\$(jq -n \\
|
|
124
124
|
--arg repo "\${{ github.repository }}" \\
|