From 42d861928c61bf197f9aa37672db48857a4bac05 Mon Sep 17 00:00:00 2001 From: MartinBelton-gov <111495215+MartinBelton-gov@users.noreply.github.com> Date: Wed, 17 Jan 2024 08:39:38 +0000 Subject: [PATCH] Changed Fetch and Unzip Plugin (#25) Co-authored-by: Martin-Belton-gov --- .github/workflows/dockerpublish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dockerpublish.yml b/.github/workflows/dockerpublish.yml index c136b44..ccbc3c2 100644 --- a/.github/workflows/dockerpublish.yml +++ b/.github/workflows/dockerpublish.yml @@ -78,16 +78,13 @@ jobs: id: downloadfile # Remember to give an ID if you need the output run: | mkdir latest-cost-plugin - cd latest-cost-plugin - latest_version=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name) - echo "Latest Version: $latest_version" - wget "https://github.com/${{ github.repository }}/releases/download/${latest_version}/dfe-azurecostbackend-datasource-${latest_version}.zip" - + cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin + wget "https://github.com/${{ github.repository }}/releases/download/main/dfe-azurecostbackend-datasource-1.0.3.zip" - name: Unzip Plugin run: | cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin - unzip -o "dfe-azurecostbackend-datasource-${{ steps.downloadfile.outputs.latest_version }}.zip" + unzip -o dfe-azurecostbackend-datasource-1.0.3.zip cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin/latest-cost-plugin/dfe-azurecostbackend-datasource pwd ls