v0.0.53: attempted fix
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ runs:
|
||||
shell: bash
|
||||
# - run: node ./dist/index.js
|
||||
# shell: bash
|
||||
- uses: ddivad195/publish-action-package/[email protected]2
|
||||
- uses: ddivad195/publish-action-package/[email protected]3
|
||||
id: publish
|
||||
- name: Output variables
|
||||
shell: bash
|
||||
|
||||
+8
-2
@@ -74764,8 +74764,14 @@ async function run() {
|
||||
}
|
||||
// Gather & validate user inputs
|
||||
const token = core.getInput('token');
|
||||
//const response = await fetch('http://echo.jsontest.com/url/https:--ghcr.io') // for testing locally
|
||||
const response = await fetch(process.env.GITHUB_API_URL + '/packages/container-registry-url');
|
||||
console.log('Official url: ' +
|
||||
process.env.GITHUB_API_URL +
|
||||
'/packages/container-registry-url');
|
||||
//const response = await fetch(
|
||||
// process.env.GITHUB_API_URL + '/packages/container-registry-url'
|
||||
//)
|
||||
const response = await fetch('http://echo.jsontest.com/url/https:--ghcr.io' // for testing locally
|
||||
);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to fetch status page: ${response.statusText}`);
|
||||
}
|
||||
|
||||
+10
-2
@@ -40,9 +40,16 @@ export async function run(): Promise<void> {
|
||||
// Gather & validate user inputs
|
||||
const token: string = core.getInput('token')
|
||||
|
||||
//const response = await fetch('http://echo.jsontest.com/url/https:--ghcr.io') // for testing locally
|
||||
console.log(
|
||||
'Official url: ' +
|
||||
process.env.GITHUB_API_URL +
|
||||
'/packages/container-registry-url'
|
||||
)
|
||||
//const response = await fetch(
|
||||
// process.env.GITHUB_API_URL + '/packages/container-registry-url'
|
||||
//)
|
||||
const response = await fetch(
|
||||
process.env.GITHUB_API_URL + '/packages/container-registry-url'
|
||||
'http://echo.jsontest.com/url/https:--ghcr.io' // for testing locally
|
||||
)
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to fetch status page: ${response.statusText}`)
|
||||
@@ -50,6 +57,7 @@ export async function run(): Promise<void> {
|
||||
const registryURL: URL = new URL(await (await response.json()).url)
|
||||
console.log(core.getInput('registry'))
|
||||
console.log(`registryURL: ${registryURL}`)
|
||||
|
||||
// Paths to be included in the OCI image
|
||||
const paths: string[] = core.getInput('path').split(' ')
|
||||
let path = ''
|
||||
|
||||
Reference in New Issue
Block a user