Skip to content

Commit

Permalink
Changed Fetch and Unzip Plugin (#25)
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 91ac4e8 commit 42d8619
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42d8619

Please sign in to comment.