Skip to content

Commit

Permalink
add: debugg logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ionut-cmd committed Dec 12, 2023
1 parent e545a7f commit 963994e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/create-demo-app-debs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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}

0 comments on commit 963994e

Please sign in to comment.