Skip to content

Commit

Permalink
fight the zip corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed May 16, 2024
1 parent 3bd2934 commit 55a376c
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/upload-release-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ jobs:
run: |
response=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/latest")
release_id=$(echo "$response" | jq -r '.id')
echo "::set-output name=release_id::$release_id"
- name: Get Latest Release Upload URL
id: get-release-upload-url
run: |
response=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/latest")
upload_url=$(echo "$response" | jq -r '.upload_url' | sed 's/{?name,label}//g')
echo "::set-output name=upload_url::$upload_url"
- name: Use Latest Release Info
- name: Display Latest Release Info
run: |
echo "Latest Release ID: ${{ steps.get-release-id.outputs.release_id }}"
echo "Latest Release Upload URL: ${{ steps.get-release-upload-url.outputs.upload_url }}"
Expand All @@ -46,19 +44,5 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Content-Type: application/zip" \
${{ steps.get-release-upload-url.outputs.upload_url }}?name=AdyenPaymentShopware6.zip \
-F "[email protected]"
# --hostname https://uploads.github.com \
# /repos/Adyen/adyen-shopware6/releases/155824733/assets?name=AdyenPaymentShopware6.zip \



# uses: alexellis/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# asset_paths: '["./AdyenPaymentShopware6.zip"]'

# upload_url: ${{ steps.get-release-upload-url.outputs.upload_url }}
# asset_name: AdyenPaymentShopware6.zip
# asset_content_type: application/zip

# -F "[email protected]"
--data-binary "@AdyenPaymentShopware6.zip" \

0 comments on commit 55a376c

Please sign in to comment.