From a1b82ebd1b51a8bc97967212962e92518a11b0f9 Mon Sep 17 00:00:00 2001 From: Duc-Tam Nguyen Date: Fri, 19 Jun 2026 19:20:03 +0700 Subject: [PATCH] Make the Linux repo dispatch best-effort The release must never fail because the dispatch token is missing scope or the call hiccups, matching how the Homebrew and Scoop steps are non-fatal. --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0159528..108f13b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,8 +94,13 @@ jobs: - name: Refresh the Linux package repository if: env.LINUX_REPO_DISPATCH_TOKEN != '' run: | - curl -fsS -X POST \ + code=$(curl -sS -o /dev/null -w '%{http_code}' -X POST \ -H "Authorization: Bearer $LINUX_REPO_DISPATCH_TOKEN" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/tamnd/linux-repo/dispatches \ - -d '{"event_type":"package-released"}' + -d '{"event_type":"package-released"}' || true) + if [ "$code" = "204" ]; then + echo "Linux repo refresh triggered" + else + echo "Linux repo refresh not accepted (HTTP $code); skipping" + fi