Skip to content

Commit a1ef1f5

Browse files
committed
fix(ci): fix jq quoting in App Store publish step
1 parent 957a725 commit a1ef1f5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/appstore-build-publish.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@ jobs:
8282

8383
- name: Publish to Nextcloud App Store
8484
run: |
85-
curl -s -X POST \
85+
TARBALL_NAME="${APP_NAME}.tar.gz"
86+
DOWNLOAD_URL=$(gh release view "${{ github.event.release.tag_name }}" --json assets -q ".assets[] | select(.name == \"${TARBALL_NAME}\") | .url")
87+
echo "Publishing ${DOWNLOAD_URL}"
88+
curl -sf -X POST \
8689
-H "Authorization: Token ${{ secrets.APPSTORE_TOKEN }}" \
8790
-H "Content-Type: application/json" \
88-
-d "{\"download\": \"$(gh release view ${{ github.event.release.tag_name }} --json assets --jq '.assets[] | select(.name == \"${APP_NAME}.tar.gz\") | .url')\"}" \
91+
-d "{\"download\": \"${DOWNLOAD_URL}\"}" \
8992
https://apps.nextcloud.com/api/v1/apps/releases
9093
env:
9194
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)