diff --git a/.github/workflows/sync_fork.yml b/.github/workflows/sync_fork.yml new file mode 100644 index 0000000000000..7a0b776258caf --- /dev/null +++ b/.github/workflows/sync_fork.yml @@ -0,0 +1,25 @@ +name: Sync Fork + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Sync and merge upstream repository with your current repository + uses: dabreadman/sync-upstream-repo@v1.3.0 + with: + # URL of gitHub public upstream repo + upstream_repo: https://github.com/postgres/postgres.git + # Branch to merge from upstream (defaults to downstream branch) + upstream_branch: master + # Branch to merge into downstream + downstream_branch: master + # GitHub Bot token + # token: ${{secrets.GITHUB_TOKEN}} + token: ${{secrets.REPO_SYNC_TOKEN}} #NEW TOKEN ADDED FOR ORG WITH WORKFLOW PERMISSION