fix(pwa): handle orientation.lock() promise rejection silently
screen.orientation.lock() returns a Promise; the old try/catch only caught synchronous errors, leaving the rejection unhandled and triggering the auto-reporter (issue #8). Added .catch(()=>{}) to suppress it. Also fixed CI: add sleep+retry around gh release create to avoid 502 race condition after delete. Closes #8
This commit is contained in:
@@ -50,14 +50,20 @@ jobs:
|
||||
- name: Delete existing kiosk release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh release delete kiosk-latest --yes || true
|
||||
run: |
|
||||
gh release delete kiosk-latest --yes || true
|
||||
sleep 5
|
||||
|
||||
- name: Create GitHub Release and upload APK
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release create kiosk-latest \
|
||||
--title "EverShelf Kiosk v${{ steps.version.outputs.name }}" \
|
||||
--notes "Kiosk mode app with embedded BLE scale gateway. Install on your Android device (7.0+)." \
|
||||
--prerelease \
|
||||
artifacts/evershelf-kiosk.apk
|
||||
for i in 1 2 3; do
|
||||
gh release create kiosk-latest \
|
||||
--title "EverShelf Kiosk v${{ steps.version.outputs.name }}" \
|
||||
--notes "Kiosk mode app with embedded BLE scale gateway. Install on your Android device (7.0+)." \
|
||||
--prerelease \
|
||||
artifacts/evershelf-kiosk.apk && break
|
||||
echo "Attempt $i failed, retrying in 10s..."
|
||||
sleep 10
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user