diff --git a/.github/workflows/deploy-sap.yml b/.github/workflows/deploy-sap.yml index cb0ae9d..f0ec48d 100644 --- a/.github/workflows/deploy-sap.yml +++ b/.github/workflows/deploy-sap.yml @@ -30,4 +30,4 @@ jobs: SAP_ADT_URL: ${{ secrets.SAP_ADT_URL }} SAP_ADT_USER: ${{ secrets.SAP_ADT_USER }} SAP_ADT_PASSWORD: ${{ secrets.SAP_ADT_PASSWORD }} - run: npx tsx --esm scripts/adt-gitpull-ci.ts + run: npx tsx scripts/adt-gitpull-ci.ts diff --git a/scripts/adt-gitpull-ci.ts b/scripts/adt-gitpull-ci.ts index 584be5d..a169244 100644 --- a/scripts/adt-gitpull-ci.ts +++ b/scripts/adt-gitpull-ci.ts @@ -21,15 +21,17 @@ if (!url || !user || !password) { process.exit(1) } -const result = await adtGitPull({ url, user, password, cwd: process.cwd() }) +void (async () => { + const result = await adtGitPull({ url, user, password, cwd: process.cwd() }) -if (!result.ok) { - console.error("abapGit pull failed:", result.error) - process.exit(1) -} + if (!result.ok) { + console.error("abapGit pull failed:", result.error) + process.exit(1) + } -console.log(`abapGit pull succeeded`) -console.log(` Repo: ${result.repoUrl}`) -console.log(` Package: ${result.sapPackage}`) -console.log(` Branch: ${result.branch}`) -console.log(` System: ${result.systemUrl}`) + console.log(`abapGit pull succeeded`) + console.log(` Repo: ${result.repoUrl}`) + console.log(` Package: ${result.sapPackage}`) + console.log(` Branch: ${result.branch}`) + console.log(` System: ${result.systemUrl}`) +})()