From 532b6031d0c505f41e2484d72a40b18cf3904a23 Mon Sep 17 00:00:00 2001 From: alexander-sei Date: Mon, 17 Aug 2026 22:32:58 +0200 Subject: [PATCH] ci: fix registry notification workflow (PLT-846) Remove the unreachable push path and update repository dispatch so registry notifications only follow successful releases. Co-authored-by: Cursor --- .github/workflows/notify.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 71f142dfc..e91b987bf 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -1,4 +1,4 @@ -# runs if /packages/registry/** is updated and the release workflow completes successfully +# Notify the registry API after the release workflow completes successfully. name: Update Registry Submodules on: @@ -6,26 +6,21 @@ on: workflows: ["Release"] types: - completed - push: - paths: - - 'packages/registry/**' + +permissions: + contents: write jobs: - release: + notify: runs-on: ubuntu-latest - if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' + if: github.event.workflow_run.conclusion == 'success' steps: - - name: Check out code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch the full history instead of a shallow clone - - - name: Delay for 90 seconds to allow NPM package to propagate + - name: Delay for 90 seconds to allow npm package to propagate run: sleep 90 - name: Update registry API - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v4 with: token: ${{ secrets.GITHUB_TOKEN }} event-type: workflow_completed