create-preview-workflow 1.1.7 → 1.1.8
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -104,6 +104,7 @@ jobs:
|
|
|
104
104
|
PUSH_TIME="\$(date -u '+%Y-%m-%d %H:%M:%S UTC')"
|
|
105
105
|
GITHUB_URL="https://github.com/\${USER}/\${REPO}/commit/\${COMMIT_SHA}"
|
|
106
106
|
PAT="\${{ secrets.GH_PAT }}"
|
|
107
|
+
SOURCE_PATH="${response.sourcePath}"
|
|
107
108
|
echo "USER=\$USER" >> \$GITHUB_ENV
|
|
108
109
|
echo "REPO=\$REPO" >> \$GITHUB_ENV
|
|
109
110
|
echo "DIR=\$DIR" >> \$GITHUB_ENV
|
|
@@ -112,6 +113,7 @@ jobs:
|
|
|
112
113
|
echo "PUSH_TIME=\$PUSH_TIME" >> \$GITHUB_ENV
|
|
113
114
|
echo "GITHUB_URL=\$GITHUB_URL" >> \$GITHUB_ENV
|
|
114
115
|
echo "PAT=\$PAT" >> \$GITHUB_ENV
|
|
116
|
+
echo "SOURCE_PATH=\$SOURCE_PATH" >> \$GITHUB_ENV
|
|
115
117
|
|
|
116
118
|
- name: Call Preview Webhook
|
|
117
119
|
run: |
|
|
@@ -131,7 +133,7 @@ jobs:
|
|
|
131
133
|
--arg commit_sha "\$COMMIT_SHA" \\
|
|
132
134
|
--arg push_time "\$PUSH_TIME" \\
|
|
133
135
|
--arg github_url "\$GITHUB_URL" \\
|
|
134
|
-
--arg source_path "
|
|
136
|
+
--arg source_path "\$SOURCE_PATH" \\
|
|
135
137
|
'{
|
|
136
138
|
repository: \$repo,
|
|
137
139
|
actor: \$actor,
|