projectops 4.28.3 → 4.28.4
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/README.md +1 -1
- package/package.json +1 -1
- package/src/core/copy/workflows.js +6 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { join, basename } from "node:path";
|
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, renameSync } from "node:fs";
|
|
7
7
|
import { PATHS } from "../paths.js";
|
|
8
8
|
import { exists, copyFileSync, listYamlFiles } from "../fsutil.js";
|
|
9
|
-
import { isUnchanged, substituteEnv } from "../wizard-env.js";
|
|
9
|
+
import { isUnchanged, substituteEnv, resolveGlobalTokens } from "../wizard-env.js";
|
|
10
10
|
import { isUserModified, readBaseline, writeBaseline, sha256 } from "../baseline.js";
|
|
11
11
|
import { substituteBranches } from "../branch-sub.js";
|
|
12
12
|
import { saveIncoming, lineDiffCounts } from "../incoming.js";
|
|
@@ -221,6 +221,11 @@ export function copyWorkflows(context, tempDir, targetRoot = ".", hooks = {}) {
|
|
|
221
221
|
const dst = join(workflowsDir, filename);
|
|
222
222
|
if (existsSync(dst)) continue; // 이미 존재하면 스킵
|
|
223
223
|
copyFileSync(join(secretDir, filename), dst);
|
|
224
|
+
// PROJECT_NAME 이 고정값이면 모든 프로젝트가 서버의 같은 폴더에 Secret 을 덮어쓴다 (#729) —
|
|
225
|
+
// 다른 배포 워크플로처럼 레포 이름으로 채운다. 이름을 알 수 없으면 기존 기본값을 쓴다.
|
|
226
|
+
const raw = readFileSync(dst, "utf8");
|
|
227
|
+
const filled = resolveGlobalTokens(raw, repoName || "my-project");
|
|
228
|
+
if (filled !== raw) writeFileSync(dst, filled);
|
|
224
229
|
counters.optionalCopied++;
|
|
225
230
|
counters.copied++;
|
|
226
231
|
counters.copiedFiles.push(filename);
|