From f479abd3487b9778337e6b0c911f6215b51d7b37 Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Sun, 25 Oct 2026 15:55:01 +0800 Subject: [PATCH 1/2] ci: notify Scoop bucket after stable releases --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da3b5b7..237cd90 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,19 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + scoop: + needs: binaries + if: ${{ !github.event.release.prerelease }} + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Notify Scoop bucket + env: + GH_TOKEN: ${{ secrets.SCOOP_BUCKET_TOKEN }} + run: | + gh api --method POST repos/gorse-io/scoop-bucket/dispatches \ + -f event_type=gorse-cli-release npm: needs: binaries runs-on: ubuntu-latest From 5c1e03437431fd722357b35d09dd3d6be0758d21 Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Sun, 25 Oct 2026 16:29:31 +0800 Subject: [PATCH 2/2] ci: use release dispatch event type --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 237cd90..ce7fb02 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: GH_TOKEN: ${{ secrets.SCOOP_BUCKET_TOKEN }} run: | gh api --method POST repos/gorse-io/scoop-bucket/dispatches \ - -f event_type=gorse-cli-release + -f event_type=release npm: needs: binaries runs-on: ubuntu-latest