Skip to content

Update sync-to-deployment-fork.yml #8

Update sync-to-deployment-fork.yml

Update sync-to-deployment-fork.yml #8

name: Sync to Deployment Fork
on:
push:
branches:
- main
# schedule:
# - cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click
jobs:
sync-deployment-fork:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Sync fork with upstream
run: |
gh api -X POST /repos/JTC-Smart-Retrieval/Smart-Retrieval-Deployment/merge-upstream -f branch='main'
env:
GH_TOKEN: ${{ secrets.PAT }}