From 08e3e397a5ca7e81333a91c6209adeee81d31f76 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2026 09:20:44 -0700 Subject: [PATCH] fix(ci): warn loudly when the Flatpak remote publish skips (#961) The credential gate silently skipped the remote publish when FLATPAK_GPG_PRIVATE_KEY / FLATPAK_REPO_TOKEN were unset, so the documented auto-update remote could stay unpublished for releases at a time (#951). Emit an Actions warning annotation and a run-summary entry instead of a plain log line, and note in docs/FLATPAK_REMOTE.md that any token with Contents write on the remote repo works. Co-authored-by: Jatin K Malik --- .github/workflows/release.yml | 11 +++++++++-- docs/FLATPAK_REMOTE.md | 5 +++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d2207e..cf1e73b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -567,7 +567,8 @@ jobs: group: flatpak-remote steps: # Same pattern as publish-aur: an unconfigured remote skips the publish - # instead of failing the release. + # instead of failing the release. The skip is loud — a quiet one let the + # documented remote sit unpublished for releases at a time (#951). - name: Check remote credentials id: creds env: @@ -576,7 +577,13 @@ jobs: run: | if [ -z "$FLATPAK_GPG_PRIVATE_KEY" ] || [ -z "$FLATPAK_REPO_TOKEN" ]; then echo "configured=false" >> "$GITHUB_OUTPUT" - echo "FLATPAK_GPG_PRIVATE_KEY and/or FLATPAK_REPO_TOKEN not set; skipping remote publish (docs/FLATPAK_REMOTE.md)" + msg="FLATPAK_GPG_PRIVATE_KEY and/or FLATPAK_REPO_TOKEN not set; skipping remote publish — the documented auto-update remote will not carry this release (docs/FLATPAK_REMOTE.md)" + echo "::warning::$msg" + { + echo "### :warning: Flatpak remote publish skipped" + echo + echo "$msg" + } >> "$GITHUB_STEP_SUMMARY" else echo "configured=true" >> "$GITHUB_OUTPUT" fi diff --git a/docs/FLATPAK_REMOTE.md b/docs/FLATPAK_REMOTE.md index 6ead646..5e3833d 100644 --- a/docs/FLATPAK_REMOTE.md +++ b/docs/FLATPAK_REMOTE.md @@ -52,8 +52,9 @@ prerelease tags, which never reach the remote. Actions): - `FLATPAK_GPG_PRIVATE_KEY` — the armored private key - `FLATPAK_GPG_PASSPHRASE` — optional - - `FLATPAK_REPO_TOKEN` — fine-grained PAT scoped to - `VocaHQ/vocalinux-flatpak` with Contents: read and write + - `FLATPAK_REPO_TOKEN` — a token with Contents: read and write on + `VocaHQ/vocalinux-flatpak`. The fine-grained PAT scoped to just that + repo is the recommended minimum; a broader classic PAT works too. 5. **Variables (optional)** — same settings page, Variables tab: - `FLATPAK_REMOTE_REPO` — publish target (default `VocaHQ/vocalinux-flatpak`)