From 11d4af20804621150617501d76fab0c8ba0a4fdc Mon Sep 17 00:00:00 2001 From: Yee Kit Date: Fri, 26 Jan 2024 00:59:37 +0800 Subject: [PATCH] Update sync-to-deployment-fork.yml --- .github/workflows/sync-to-deployment-fork.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/sync-to-deployment-fork.yml b/.github/workflows/sync-to-deployment-fork.yml index de007d6..310a2ca 100644 --- a/.github/workflows/sync-to-deployment-fork.yml +++ b/.github/workflows/sync-to-deployment-fork.yml @@ -7,6 +7,13 @@ on: # - cron: '*/30 * * * *' # every 30 minutes workflow_dispatch: # on button click +env: + REQUEST_BODY: | + branch: 'main', + headers: { + 'X-GitHub-Api-Version': '2022-11-28' + } + jobs: sync-deployment-fork: runs-on: ubuntu-latest @@ -15,6 +22,7 @@ jobs: id: sync_deployment_fork with: route: POST /repos/{owner}/{repo}/merge-upstream + body: ${{ toJSON(env.REQUEST_BODY) }} owner: JTC-Smart-Retrieval repo: Smart-Retrieval-Deployment env: