khronoz commited on
Commit
11d4af2
·
unverified ·
1 Parent(s): b6b31a7

Update sync-to-deployment-fork.yml

Browse files
.github/workflows/sync-to-deployment-fork.yml CHANGED
@@ -7,6 +7,13 @@ on:
7
  # - cron: '*/30 * * * *' # every 30 minutes
8
  workflow_dispatch: # on button click
9
 
 
 
 
 
 
 
 
10
  jobs:
11
  sync-deployment-fork:
12
  runs-on: ubuntu-latest
@@ -15,6 +22,7 @@ jobs:
15
  id: sync_deployment_fork
16
  with:
17
  route: POST /repos/{owner}/{repo}/merge-upstream
 
18
  owner: JTC-Smart-Retrieval
19
  repo: Smart-Retrieval-Deployment
20
  env:
 
7
  # - cron: '*/30 * * * *' # every 30 minutes
8
  workflow_dispatch: # on button click
9
 
10
+ env:
11
+ REQUEST_BODY: |
12
+ branch: 'main',
13
+ headers: {
14
+ 'X-GitHub-Api-Version': '2022-11-28'
15
+ }
16
+
17
  jobs:
18
  sync-deployment-fork:
19
  runs-on: ubuntu-latest
 
22
  id: sync_deployment_fork
23
  with:
24
  route: POST /repos/{owner}/{repo}/merge-upstream
25
+ body: ${{ toJSON(env.REQUEST_BODY) }}
26
  owner: JTC-Smart-Retrieval
27
  repo: Smart-Retrieval-Deployment
28
  env: