From 7b73e40c64e8a48a5181c9311b5cbda7e8ce361b Mon Sep 17 00:00:00 2001
From: Naoki Ikeguchi
Date: Sat, 26 Jul 2025 21:00:35 +0900
Subject: [PATCH] ci: sync `next` branch to the website repo
---
.github/workflows/repository_dispatch.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/repository_dispatch.yml b/.github/workflows/repository_dispatch.yml
index ccb3cd6a591c..be8d696e8712 100644
--- a/.github/workflows/repository_dispatch.yml
+++ b/.github/workflows/repository_dispatch.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
+ - next
permissions:
contents: read
@@ -91,7 +92,7 @@ jobs:
token: ${{ secrets.BIOME_REPOSITORY_DISPATCH }}
repository: ${{ env.BIOME_WEBSITE_REPO }}
event-type: ${{ env.BIOME_PUSH_ON_MAIN_EVENT_TYPE }}
- client-payload: '{"event": ${{ toJson(github.event) }}}'
+ client-payload: '{"event": ${{ toJSON(github.event) }}}'
# For testing only, the payload is mocked
- name: Dispatch event on workflow dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -100,4 +101,4 @@ jobs:
token: ${{ secrets.BIOME_REPOSITORY_DISPATCH }}
repository: ${{ env.BIOME_WEBSITE_REPO }}
event-type: ${{ env.BIOME_PUSH_ON_MAIN_EVENT_TYPE }}
- client-payload: '{"event": {"head_commit": {"id": "${{ env.GITHUB_SHA }}"}}}'
+ client-payload: '{"event": {"head_commit": {"id": "${{ github.sha }}"}, "ref": "${{ github.ref }}"}}'