v0.0.55: get rid of an extraneous await

This commit is contained in:
Edwin Sirko
2024-01-26 16:34:38 +00:00
committed by ddivad195
parent 120663b080
commit 995b9bd0a1
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ runs:
shell: bash shell: bash
# - run: node ./dist/index.js # - run: node ./dist/index.js
# shell: bash # shell: bash
- uses: ddivad195/publish-action-package/[email protected]4 - uses: ddivad195/publish-action-package/[email protected]5
id: publish id: publish
- name: Output variables - name: Output variables
shell: bash shell: bash
Generated Vendored
+2 -2
View File
@@ -74773,8 +74773,8 @@ async function run() {
if (!response.ok) { if (!response.ok) {
throw new Error(`Failed to fetch status page: ${response.statusText}`); throw new Error(`Failed to fetch status page: ${response.statusText}`);
} }
const registryURL = new URL(await (await response.json()).url); const registryURL = new URL((await response.json()).url);
console.log(`registryURL (supplied): ${core.getInput('registry')}`); console.log(`registryURL (supplied): ${core.getInput('registry')}`); // TODO: get rid of the `registry` input
console.log(`registryURL (from URL): ${registryURL}`); console.log(`registryURL (from URL): ${registryURL}`);
// Paths to be included in the OCI image // Paths to be included in the OCI image
const paths = core.getInput('path').split(' '); const paths = core.getInput('path').split(' ');
+2 -2
View File
@@ -54,8 +54,8 @@ export async function run(): Promise<void> {
if (!response.ok) { if (!response.ok) {
throw new Error(`Failed to fetch status page: ${response.statusText}`) throw new Error(`Failed to fetch status page: ${response.statusText}`)
} }
const registryURL: URL = new URL(await (await response.json()).url) const registryURL: URL = new URL((await response.json()).url)
console.log(`registryURL (supplied): ${core.getInput('registry')}`) console.log(`registryURL (supplied): ${core.getInput('registry')}`) // TODO: get rid of the `registry` input
console.log(`registryURL (from URL): ${registryURL}`) console.log(`registryURL (from URL): ${registryURL}`)
// Paths to be included in the OCI image // Paths to be included in the OCI image