From 86588e3791ad3251141c2a3d571309887291d4b0 Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Tue, 23 Jan 2024 16:29:42 -0500 Subject: [PATCH] v0.0.56: style --- action.yml | 2 +- dist/index.js | 3 ++- src/main.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index ff5e714..f308792 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.55 + - uses: ddivad195/publish-action-package/package-and-publish@v0.0.56 id: publish - name: Output variables shell: bash diff --git a/dist/index.js b/dist/index.js index 477a5e9..a70ce75 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74773,7 +74773,8 @@ async function run() { if (!response.ok) { throw new Error(`Failed to fetch status page: ${response.statusText}`); } - const registryURL = new URL((await response.json()).url); + const data = await response.json(); + const registryURL = new URL(data.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 diff --git a/src/main.ts b/src/main.ts index 1124030..498239c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -54,7 +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 response.json()).url) + const data = await response.json() + const registryURL: URL = new URL(data.url) console.log(`registryURL (supplied): ${core.getInput('registry')}`) // TODO: get rid of the `registry` input console.log(`registryURL (from URL): ${registryURL}`)