From df9de2d257067da262ca3068e702956005386e9e Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Tue, 14 Apr 2026 16:42:35 +0000 Subject: [PATCH] ci: fix broken YAML - multiline notes had zero indentation breaking the literal block --- .github/workflows/build-scale-gateway.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-scale-gateway.yml b/.github/workflows/build-scale-gateway.yml index ea3bba3..3768052 100644 --- a/.github/workflows/build-scale-gateway.yml +++ b/.github/workflows/build-scale-gateway.yml @@ -1,13 +1,14 @@ name: Build & Release Scale Gateway APK -# Builds the Scale Gateway APK and publishes it to GitHub Releases on: push: branches: - main - workflow_dispatch: +permissions: + contents: write + jobs: build: name: Build APK @@ -35,21 +36,18 @@ jobs: - name: Rename APK run: | mkdir -p artifacts - cp evershelf-scale-gateway/app/build/outputs/apk/debug/app-debug.apk \ - artifacts/evershelf-scale-gateway.apk + cp evershelf-scale-gateway/app/build/outputs/apk/debug/app-debug.apk artifacts/evershelf-scale-gateway.apk - name: Get version name id: version run: | - VERSION=$(grep 'versionName' evershelf-scale-gateway/app/build.gradle.kts \ - | grep -oP '"\K[^"]+') + VERSION=$(grep 'versionName' evershelf-scale-gateway/app/build.gradle.kts | grep -oP '"\K[^"]+') echo "name=$VERSION" >> "$GITHUB_OUTPUT" - - name: Delete existing latest release (if any) + - name: Delete existing latest release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release delete latest --yes || true + run: gh release delete latest --yes || true - name: Create GitHub Release and upload APK env: @@ -57,10 +55,6 @@ jobs: run: | gh release create latest \ --title "EverShelf Scale Gateway v${{ steps.version.outputs.name }}" \ - --notes "Automated release of EverShelf Scale Gateway v${{ steps.version.outputs.name }}. - -## Download -Download the APK below and install it on your Android device (Android 7.0+). -Make sure to allow installation from unknown sources in your device settings." \ + --notes "Download the APK and install it on your Android device (7.0+). Allow installation from unknown sources in settings." \ --latest \ artifacts/evershelf-scale-gateway.apk