Skip to content

Commit

Permalink
Update checkout version in mail.yml to get rid of deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed May 16, 2024
1 parent 0fce5dc commit 083d0c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
php-version: ${{ matrix.php-version }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/upload-release-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ 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')
- name: Get Latest Release Upload URL
- name: Get Latest Release Id and 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')
- name: Display Latest Release Info
run: |
release_id=$(echo "$response" | jq -r '.id')
echo "::set-output name=release_id::$release_id"
echo "::set-output name=upload_url::$upload_url"
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 @@ -39,9 +38,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-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 "--data-binary[email protected]"
--method POST \
-H "Accept: application/vnd.github+json" \
-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]"

0 comments on commit 083d0c1

Please sign in to comment.