From 0e7b317c5165a5bc04d760540a455c4a53083e1f Mon Sep 17 00:00:00 2001 From: Oliver-Marcus Eder Date: Sat, 29 Aug 2026 07:47:04 +0200 Subject: [PATCH] ci: notify spec site to bump validator pin after publish Mirror of the renderer change: after npm publish, fire a validator_released repository_dispatch to opencoachingformat/spec so its sync-tool-version workflow bumps OCF_VALIDATOR_VERSION and opens a PR. Guarded on OCF_SITE_DISPATCH_TOKEN. --- .github/workflows/release-ts.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release-ts.yml b/.github/workflows/release-ts.yml index 58566cf..a3b99fb 100644 --- a/.github/workflows/release-ts.yml +++ b/.github/workflows/release-ts.yml @@ -57,3 +57,18 @@ jobs: # --provenance flag. - name: Publish to npm run: npm publish + + # After a successful publish, tell the spec site to bump its pinned + # validator version and open a PR. Requires an OCF_SITE_DISPATCH_TOKEN + # secret (contents:write + pull-requests:write on opencoachingformat/spec). + # Guarded so a release still succeeds if the secret is absent. + - name: Notify spec site to bump the validator pin + env: + SITE_TOKEN: ${{ secrets.OCF_SITE_DISPATCH_TOKEN }} + if: ${{ env.SITE_TOKEN != '' }} + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.OCF_SITE_DISPATCH_TOKEN }} + repository: opencoachingformat/spec + event-type: validator_released + client-payload: '{"version": "${{ github.ref_name }}"}'