Skip to content

Commit

Permalink
chore(release): 1.0.0-alpha.12 [skip ci]
Browse files Browse the repository at this point in the history
# [1.0.0-alpha.12](v1.0.0-alpha.11...v1.0.0-alpha.12) (2024-04-29)

### Features

* More debug logging ([#4](#4)) ([2c86dee](2c86dee))
  • Loading branch information
semantic-release-bot committed Apr 29, 2024
1 parent 2c86dee commit 368c5a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.0.0-alpha.12](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2024-04-29)


### Features

* More debug logging ([#4](https://github.com/tenantcloud/template-sync/issues/4)) ([2c86dee](https://github.com/tenantcloud/template-sync/commit/2c86dee7be9b379603c1859ef5878ee4cdc372a4))

# [1.0.0-alpha.11](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2024-04-24)


Expand Down
5 changes: 4 additions & 1 deletion dist/github-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52190,12 +52190,13 @@ async function writeJson(path, obj) {
async function firstExistingPath(root, possibleFileNames) {
for (const fileName of possibleFileNames) {
const path = (0,external_path_.join)(root, fileName);
console.debug(`Checking if file exists at path ${fileName} (${path})`);
if (!(await (0,lib.pathExists)(path))) {
continue;
}
return fileName;
}
throw new Error("Could not find file in these paths: " + possibleFileNames.join(", "));
throw new Error(`Could not find file in these paths: ${possibleFileNames.join(", ")}`);
}

;// CONCATENATED MODULE: ./src/config.ts
Expand Down Expand Up @@ -53120,6 +53121,7 @@ class Syncer {
this.repositorySourcer = repositorySourcer;
}
async sync(sourceRoot) {
console.debug(`Using ${sourceRoot} as source root / working directory`);
const source = new Repository(sourceRoot);
const sourceConfig = await loadSourceConfig(source.path(await source.sourceConfigFileName()));
for (const repositoryConfig of sourceConfig.repositories) {
Expand Down Expand Up @@ -53165,6 +53167,7 @@ ${repositories.join("\n")}`;

async function main() {
const tmpDir = process.env["RUNNER_TEMP"] || (0,external_os_.tmpdir)();
console.debug(`Using ${tmpDir} for temporary files`);
const syncer = new Syncer(new GitHubRepositorySourcer(core.getInput("token") || null, new GitRepositorySourcer(tmpDir, esm_default().env(process.env))));
const result = await syncer.sync(process.cwd());
core.setOutput("report", syncResultToReport(result));
Expand Down

0 comments on commit 368c5a0

Please sign in to comment.