Skip to content

Commit

Permalink
updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-putzu committed Feb 12, 2025
1 parent f659bf6 commit 88b629b
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/call_publish_web_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,21 @@ jobs:
subscription-id: ${{ vars.ARM_SUBSCRIPTION_ID }}

- name: Upload app-io-premium-plans to blob storage
uses: ./.github/workflows/call_publish_blob.yml
with:
environment: "{{ inputs.environment_short }}"
STORAGE_ACCOUNT_NAME: "${{ env.STORAGE_ACCOUNT_NAME }}"
STORAGE_CONTAINER: "${{ env.STORAGE_CONTAINER }}"
STORAGE_ACCOUNT_RG: ""
DESTINATION: "assets/app-io-premium-plans.json"
SOURCE: "./src/core/env/${{ inputs.environment }}/assets/app-io-premium-plans.json"

run: |
upload_status=$(az storage blob upload \
--account-name "${{ env.STORAGE_ACCOUNT_NAME}}" \
--account-key "${{ secrets.STORAGE_CONTRACTS_ACCOUNT_KEY }}" \
--source "./src/core/env/${{ inputs.environment }}/assets/app-io-premium-plans.json" ' \
--destination "${{ env.STORAGE_CONTAINER }}/assets/app-io-premium-plans.json" \
--overwrite)
echo "${upload_status}"
if [[ $? -eq 0 ]]; then
echo "Upload success."
else
echo "Error during contracts upload batch."
exit 1 # Esce dallo step con codice di errore
fi
# - name: Upload config to blob storage
# run: |
# az storage blob upload \
Expand Down

0 comments on commit 88b629b

Please sign in to comment.