Skip to content

Commit 156aacf

Browse files
Try generating QR locally as UTF8 text
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
1 parent d9c4f86 commit 156aacf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/qa.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
env:
8181
ARTIFACT_URL: ${{ steps.upload-apk.outputs.artifact-url }}
8282
run: |
83-
encoded=$(printf '%s' "$ARTIFACT_URL" | jq -sRr @uri)
84-
echo "url=https://api.qrserver.com/v1/create-qr-code/?size=220x220&margin=8&data=$encoded" >> "$GITHUB_OUTPUT"
85-
83+
sudo apt-get -y install qrencode
84+
qrencode -t UTF8 "$ARTIFACT_URL" >> "$GITHUB_OUTPUT"
8685
- name: Comment PR
8786
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
8887
uses: thollander/actions-comment-pull-request@e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa
@@ -99,7 +98,7 @@ jobs:
9998
| **Version** | `${{ github.event.number }}` |
10099
| **Available until** | 7 days after this build |
101100
102-
<img alt="QR code for the download link" src="${{ steps.qr.outputs.url }}" width="180" height="180">
101+
${{ steps.qr.outputs }}
103102
104103
The QA build installs alongside a released Nextcloud app, so you can keep
105104
using your existing install while testing.

0 commit comments

Comments
 (0)