Skip to content

Commit

Permalink
Gets latest cost plugin zip file (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin-Belton-gov <martin.belton@digital.education.gov.uk>
  • Loading branch information
MartinBelton-gov and Martin-Belton-gov authored Jan 17, 2024
1 parent 2ff71c7 commit 91ac4e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ jobs:
id: downloadfile # Remember to give an ID if you need the output
run: |
mkdir latest-cost-plugin
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"
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"
- name: Unzip Plugin
run: |
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin
unzip -o dfe-azurecostbackend-datasource-1.0.3.zip
unzip -o "dfe-azurecostbackend-datasource-${{ steps.downloadfile.outputs.latest_version }}.zip"
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin/latest-cost-plugin/dfe-azurecostbackend-datasource
pwd
ls
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement
Expand Down

0 comments on commit 91ac4e8

Please sign in to comment.