agconf 0.3.2 → 0.3.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/dist/index.js CHANGED
@@ -904,7 +904,7 @@ function hashContent(content) {
904
904
  return `sha256:${hash.slice(0, 12)}`;
905
905
  }
906
906
  function getCliVersion() {
907
- return true ? "0.3.2" : "0.0.0";
907
+ return true ? "0.3.4" : "0.0.0";
908
908
  }
909
909
  async function checkCliVersionMismatch(targetDir) {
910
910
  const result = await readLockfile(targetDir);
@@ -2518,7 +2518,8 @@ var DEFAULT_CLI_NAME2 = "agconf";
2518
2518
  var WORKFLOWS_DIR = ".github/workflows";
2519
2519
  function getWorkflowConfig(sourceRepo, config) {
2520
2520
  const name = config?.name ?? DEFAULT_CLI_NAME2;
2521
- const secretName = `${name.toUpperCase().replace(/-/g, "_")}_TOKEN`;
2521
+ const markerPrefix = config?.markerPrefix ?? DEFAULT_CLI_NAME2;
2522
+ const secretName = `${markerPrefix.toUpperCase().replace(/-/g, "_")}_TOKEN`;
2522
2523
  return {
2523
2524
  sourceRepo,
2524
2525
  cliName: config?.cliName ?? DEFAULT_CLI_NAME2,
@@ -2937,7 +2938,9 @@ async function performSync(options) {
2937
2938
  const workflowSpinner = logger.spinner("Syncing workflow files...");
2938
2939
  workflowSpinner.start();
2939
2940
  const workflowRef = resolvedVersion.isRelease && resolvedVersion.version ? formatTag(resolvedVersion.version) : resolvedVersion.ref;
2940
- workflowResult = await syncWorkflows(targetDir, workflowRef, options.sourceRepo);
2941
+ workflowResult = await syncWorkflows(targetDir, workflowRef, options.sourceRepo, {
2942
+ markerPrefix: resolvedSource.markerPrefix
2943
+ });
2941
2944
  workflowSpinner.stop();
2942
2945
  }
2943
2946
  const hookResult = await installPreCommitHook(targetDir);