From f3749fb7e16922a66da096d4f8b03e187a5908b0 Mon Sep 17 00:00:00 2001 From: mrdrivingduck Date: Wed, 7 Aug 2024 15:06:46 +0800 Subject: [PATCH] feat: sync with upstream periodically --- .github/workflows/sync-postgres.yml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/sync-postgres.yml diff --git a/.github/workflows/sync-postgres.yml b/.github/workflows/sync-postgres.yml new file mode 100644 index 00000000000..d56e3132af8 --- /dev/null +++ b/.github/workflows/sync-postgres.yml @@ -0,0 +1,42 @@ +name: sync with postgres upstream + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: repo-sync-master + uses: repo-sync/github-sync@v2 + with: + source_repo: https://github.com/postgres/postgres.git + source_branch: master + destination_branch: master + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: repo-sync-17 + uses: repo-sync/github-sync@v2 + with: + source_repo: https://github.com/postgres/postgres.git + source_branch: REL_17_STABLE + destination_branch: REL_17_STABLE + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: repo-sync-16 + uses: repo-sync/github-sync@v2 + with: + source_repo: https://github.com/postgres/postgres.git + source_branch: REL_16_STABLE + destination_branch: REL_16_STABLE + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: repo-sync-15 + uses: repo-sync/github-sync@v2 + with: + source_repo: https://github.com/postgres/postgres.git + source_branch: REL_15_STABLE + destination_branch: REL_15_STABLE + github_token: ${{ secrets.GITHUB_TOKEN }}