khronoz commited on
Commit
32bac69
·
unverified ·
1 Parent(s): 236a4c9

Update sync-to-deployment-fork.yml

Browse files
.github/workflows/sync-to-deployment-fork.yml CHANGED
@@ -8,16 +8,15 @@ on:
8
  workflow_dispatch: # on button click
9
 
10
  jobs:
11
- sync:
12
-
13
  runs-on: ubuntu-latest
14
-
15
  steps:
16
- - uses: tgymnich/fork-sync@v1.9.0
 
17
  with:
18
- token: ${{ secrets.PAT }}
19
- owner: JTC-Smart-Retrieval
20
- repo: Smart-Retrieval-Deployment
21
- base: main
22
- head: main
23
- auto_approve: true
 
8
  workflow_dispatch: # on button click
9
 
10
  jobs:
11
+ sync-deployment-fork:
 
12
  runs-on: ubuntu-latest
 
13
  steps:
14
+ - uses: octokit/request-action@v2.1.9
15
+ id: sync_deployment_fork
16
  with:
17
+ route: POST /repos/JTC-Smart-Retrieval/Smart-Retrieval-Deployment/merge-upstream
18
+ env:
19
+ GITHUB_TOKEN: ${{ secrets.PAT }}
20
+ - run: "echo Sync Fork Success!: '${{ steps.sync_deployment_fork.outputs.data }}'"
21
+ - run: "echo Sync Fork Failed. Request failed with status '${{ steps.sync_deployment_fork.outputs.status }}'"
22
+ if: ${{ failure() }}