Make sure to fail CI when unable to get madMAx version (#9573)

* Make sure to fail CI when unable to get madMAx version

* fail more
This commit is contained in:
Kyle Altendorf
2021-12-15 10:00:36 -06:00
committed by GitHub
parent a6ddf1bd36
commit 64c433b615
+2 -1
View File
@@ -59,7 +59,8 @@ steps:
displayName: Create installer version number
- script: |
MADMAX_VERSION=$(curl -u "$(GithubUsername):$(GithubToken)" --silent "https://api.github.com/repos/Chia-Network/chia-plotter-madmax/releases/latest" | jq -r '.tag_name')
set -o errexit -o pipefail
MADMAX_VERSION=$(curl -u "$(GithubUsername):$(GithubToken)" --fail --silent "https://api.github.com/repos/Chia-Network/chia-plotter-madmax/releases/latest" | jq -r '.tag_name')
mkdir "$(System.DefaultWorkingDirectory)/madmax"
wget -O "$(System.DefaultWorkingDirectory)/madmax/chia_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${MADMAX_VERSION}/chia_plot-${MADMAX_VERSION}-macos-intel