From 963994e640e05997134b82b7c5b113dbdf4b29e4 Mon Sep 17 00:00:00 2001 From: ionut-cmd Date: Tue, 12 Dec 2023 15:53:38 +0000 Subject: [PATCH] add: debugg logs --- .github/workflows/create-demo-app-debs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/create-demo-app-debs.yml b/.github/workflows/create-demo-app-debs.yml index a97e74e1..645c4e56 100644 --- a/.github/workflows/create-demo-app-debs.yml +++ b/.github/workflows/create-demo-app-debs.yml @@ -189,6 +189,9 @@ jobs: // Delete existing asset with the same name const assets = await github.rest.repos.listReleaseAssets({ owner, repo, release_id }); const existingAsset = assets.data.find(asset => asset.name === asset_name); + + console.log(`Existing assets: ${existingAsset}`) + if (existingAsset) { await github.rest.repos.deleteReleaseAsset({ owner, @@ -201,6 +204,10 @@ jobs: const contentLength = fs.statSync(path).size; const headers = { 'content-type': 'application/vnd.debian.binary-package', 'content-length': contentLength }; const asset = fs.readFileSync(path); + + console.log(`UPLOAD URL: ${context.payload.release.upload_url}`); + console.log(`release_id: ${process.env.RELEASE_ID;}`); + await github.rest.repos.uploadReleaseAsset({ url: context.payload.release.upload_url, @@ -257,3 +264,4 @@ jobs: console.error(`Error uploading ${asset_name}, ${error}`); } + UPLOAD_URL: https://uploads.github.com/repos/nqminds/nist-brski/releases/132993068/assets{?name,label} \ No newline at end of file