-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sushmita
committed
May 16, 2024
1 parent
47172a4
commit bc0232a
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
-F "--data-binary[email protected]" |