create-preview-workflow 1.1.2 → 1.1.3
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 +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -48,6 +48,11 @@ function getGitHubInfo() {
|
|
48
48
|
message:
|
49
49
|
"Enter the source directory to sync (e.g., 2_scripts) without leading slash:",
|
50
50
|
},
|
51
|
+
{
|
52
|
+
type: "text",
|
53
|
+
name: "org",
|
54
|
+
message: "Enter the organization:",
|
55
|
+
},
|
51
56
|
]);
|
52
57
|
|
53
58
|
const { username, repo } = getGitHubInfo();
|
@@ -108,7 +113,8 @@ jobs:
|
|
108
113
|
echo "Last commit: \$COMMIT_MSG" >> preview/public/protected/\$DIR/.sync_log
|
109
114
|
echo "Commit SHA: \$COMMIT_SHA" >> preview/public/protected/\$DIR/.sync_log
|
110
115
|
echo "Source: \$USER/\$REPO" >> preview/public/protected/\$DIR/.sync_log
|
111
|
-
echo "View diff: \$GITHUB_URL" >> preview/public/protected/\$DIR/.sync_log
|
116
|
+
echo "View diff: \$GITHUB_URL" >> preview/public/protected/\$DIR/.sync_log
|
117
|
+
echo "Org: ${response.org}" >> preview/public/protected/\$DIR/.sync_log
|
112
118
|
cd preview
|
113
119
|
git config user.name "GitHub Actions"
|
114
120
|
git config user.email "actions@github.com"
|