From 9d31cd5322e704c5620e3ddaeece78ac7e9f31f8 Mon Sep 17 00:00:00 2001 From: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:12:28 +0530 Subject: [PATCH] Formatted changes --- .github/workflows/basic-validation.yml | 2 +- .github/workflows/check-dist.yml | 2 +- src/api-utils.ts | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/basic-validation.yml b/.github/workflows/basic-validation.yml index 3d2968e..fd71381 100644 --- a/.github/workflows/basic-validation.yml +++ b/.github/workflows/basic-validation.yml @@ -11,4 +11,4 @@ jobs: name: Basic validation uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main with: - node-version: '20' \ No newline at end of file + node-version: '20' diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 25d6b34..30aa221 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -16,4 +16,4 @@ jobs: name: Check dist/ uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main with: - node-version: '20' \ No newline at end of file + node-version: '20' diff --git a/src/api-utils.ts b/src/api-utils.ts index 5116293..030f820 100644 --- a/src/api-utils.ts +++ b/src/api-utils.ts @@ -57,10 +57,12 @@ export async function validateIfReleaseIsPublished( octokitClient: InstanceType ): Promise { try { - const {data: foundRelease} = await octokitClient.rest.repos.getReleaseByTag({ - ...context.repo, - tag - }); + const {data: foundRelease} = await octokitClient.rest.repos.getReleaseByTag( + { + ...context.repo, + tag + } + ); if (foundRelease.prerelease) { throw new Error(