Skip to content

Commit

Permalink
fix: reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
ionut-cmd committed Dec 12, 2023
1 parent 564bfda commit e545a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-demo-app-debs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ jobs:
script: |
const fs = require('fs');
const path = './brski-demo-app-deb_arm64.deb';
const asset_name = 'brski-demo-app-deb_arm64.deb';
try {
// Check if the file exists
Expand All @@ -184,7 +185,6 @@ jobs:
const { owner, repo } = context.repo;
const release_id = process.env.RELEASE_ID;
const asset_name = 'brski-demo-app-deb_arm64.deb';
// Delete existing asset with the same name
const assets = await github.rest.repos.listReleaseAssets({ owner, repo, release_id });
Expand Down Expand Up @@ -220,6 +220,7 @@ jobs:
script: |
const fs = require('fs');
const path = './brski-demo-app-deb-x86_64.deb';
const asset_name = 'brski-demo-app-deb-x86_64.deb';
try {
// Check if the file exists
Expand All @@ -229,8 +230,7 @@ jobs:
const { owner, repo } = context.repo;
const release_id = process.env.RELEASE_ID;
const asset_name = 'brski-demo-app-deb-x86_64.deb';
// 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);
Expand Down

0 comments on commit e545a7f

Please sign in to comment.