From 9b87b657f02bdad58e1b938ad1c26ae8b724261c Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 7 Sep 2023 10:19:30 +0800 Subject: [PATCH] chore: add nightly branch sync --- .github/workflows/nightly.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..6c595a8 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,27 @@ +name: Create and publish docker image + +on: + workflow_dispatch: + schedule: + - cron: '0 20 */1 * *' + +jobs: + sync-branches: + runs-on: ubuntu-latest + name: Syncing nightly branches + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Opening pull request + id: pull + uses: tretuna/sync-branches@1.4.0 + with: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + FROM_BRANCH: "main" + TO_BRANCH: "nightly"