From bc0232a09e7d7ab3e18d3da95dfacf8b5d225ee6 Mon Sep 17 00:00:00 2001 From: sushmita Date: Thu, 16 May 2024 16:03:13 +0200 Subject: [PATCH] Test and revert --- ...ce-artifact.yml => marketplace-artifact.txt} | 0 .github/workflows/upload-release-asset.yml | 17 ++++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) rename .github/workflows/{marketplace-artifact.yml => marketplace-artifact.txt} (100%) diff --git a/.github/workflows/marketplace-artifact.yml b/.github/workflows/marketplace-artifact.txt similarity index 100% rename from .github/workflows/marketplace-artifact.yml rename to .github/workflows/marketplace-artifact.txt diff --git a/.github/workflows/upload-release-asset.yml b/.github/workflows/upload-release-asset.yml index df876496..c52e7032 100644 --- a/.github/workflows/upload-release-asset.yml +++ b/.github/workflows/upload-release-asset.yml @@ -20,17 +20,20 @@ jobs: id: get-release-id 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 Id and Upload URL + - 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') - release_id=$(echo "$response" | jq -r '.id') - echo "name=release_id::$release_id" >> $GITHUB_ENV - echo "name=upload_url::$upload_url" >> $GITHUB_ENV - echo "Latest Release ID: ${{ env.release_id }}" - echo "Latest Release Upload URL: ${{ env.upload_url }}" + echo "::set-output name=upload_url::$upload_url" + + - name: Use 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 }}" - name: Marketplace Release Artifacts id: marketplace-release-Artifact @@ -43,4 +46,4 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ -H "Content-Type: application/zip" \ ${{ env.upload_url }}?name=AdyenPaymentShopware6.zip \ - -F "data=@AdyenPaymentShopware6.zip" \ No newline at end of file + -F "--data-binary=@AdyenPaymentShopware6.zip" \ No newline at end of file