fix validation failed issues

This commit is contained in:
Ben Sarmiento
2023-10-29 08:32:38 +01:00
parent 14f511d649
commit e05fcf4c52

View File

@@ -102,13 +102,11 @@ jobs:
- name: Upload Artifacts to other repo's release
run: |
for artifact in $(ls -1 *.zip); do
echo "Uploading $artifact..."
echo "Content-Type: $(file -b --mime-type $artifact)"
for artifact in *.zip; do
curl -s -X POST \
-H "Authorization: token ${{ secrets.PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
-H "Content-Type: $(file -b --mime-type $artifact)" \
-H "Content-Type: $(file -b --mime-type "$artifact")" \
--data-binary "@$artifact" \
"https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename $artifact)"
"https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename "$artifact")"
done