From e545a7f854a96118049933c294bf52b449252af5 Mon Sep 17 00:00:00 2001 From: ionut-cmd Date: Tue, 12 Dec 2023 15:24:19 +0000 Subject: [PATCH] fix: reference error --- .github/workflows/create-demo-app-debs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-demo-app-debs.yml b/.github/workflows/create-demo-app-debs.yml index 37e64b92..a97e74e1 100644 --- a/.github/workflows/create-demo-app-debs.yml +++ b/.github/workflows/create-demo-app-debs.yml @@ -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 @@ -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 }); @@ -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 @@ -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);