Update nightly workflow to fail if bucket / pricing file permissions are
not correct.
diff --git a/.github/workflows/publish_pricing_to_s3.yml b/.github/workflows/publish_pricing_to_s3.yml
index 1f079a0..b294908 100644
--- a/.github/workflows/publish_pricing_to_s3.yml
+++ b/.github/workflows/publish_pricing_to_s3.yml
@@ -41,3 +41,10 @@
AWS_ACCESS_KEY_SECRET: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
run: |
script -e -c "tox -escrape-and-publish-provider-prices"
+
+ - name: Verify files can be downloaded
+ # Verify that the permissions are correct and files can be downloaded publicly
+ run: |
+ curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json
+ curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json.sha256
+ curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json.sha512