From 995b9bd0a1b35cfd82e65166a578a6a10defc33e Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Tue, 23 Jan 2024 16:25:17 -0500 Subject: [PATCH] v0.0.55: get rid of an extraneous await --- action.yml | 2 +- dist/index.js | 4 ++-- src/main.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index ef11001..ff5e714 100644 --- a/action.yml +++ b/action.yml @@ -33,7 +33,7 @@ runs: shell: bash # - run: node ./dist/index.js # shell: bash - - uses: ddivad195/publish-action-package/package-and-publish@v0.0.54 + - uses: ddivad195/publish-action-package/package-and-publish@v0.0.55 id: publish - name: Output variables shell: bash diff --git a/dist/index.js b/dist/index.js index db27bf3..477a5e9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74773,8 +74773,8 @@ async function run() { if (!response.ok) { throw new Error(`Failed to fetch status page: ${response.statusText}`); } - const registryURL = new URL(await (await response.json()).url); - console.log(`registryURL (supplied): ${core.getInput('registry')}`); + const registryURL = new URL((await response.json()).url); + console.log(`registryURL (supplied): ${core.getInput('registry')}`); // TODO: get rid of the `registry` input console.log(`registryURL (from URL): ${registryURL}`); // Paths to be included in the OCI image const paths = core.getInput('path').split(' '); diff --git a/src/main.ts b/src/main.ts index fa4f72e..1124030 100644 --- a/src/main.ts +++ b/src/main.ts @@ -54,8 +54,8 @@ export async function run(): Promise { if (!response.ok) { throw new Error(`Failed to fetch status page: ${response.statusText}`) } - const registryURL: URL = new URL(await (await response.json()).url) - console.log(`registryURL (supplied): ${core.getInput('registry')}`) + const registryURL: URL = new URL((await response.json()).url) + console.log(`registryURL (supplied): ${core.getInput('registry')}`) // TODO: get rid of the `registry` input console.log(`registryURL (from URL): ${registryURL}`) // Paths to be included in the OCI image