From 898b49ced2b6ab62140cbe882c62959357350dbf Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 7 Jan 2024 16:19:23 +0800 Subject: [PATCH 1/2] chore: add sync bugfixes workflow --- .github/workflows/sync-bugfixes.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync-bugfixes.yml diff --git a/.github/workflows/sync-bugfixes.yml b/.github/workflows/sync-bugfixes.yml new file mode 100644 index 00000000..13992228 --- /dev/null +++ b/.github/workflows/sync-bugfixes.yml @@ -0,0 +1,24 @@ +name: Sync Back to Bugfixes +on: + push: + branches: + - main + +jobs: + sync-branches: + runs-on: ubuntu-latest + name: Syncing 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: bugfixes From a01d8a4b8014b4888556751ee427da5aaed16190 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 7 Jan 2024 16:31:26 +0800 Subject: [PATCH 2/2] chore: Update sync-bugfixes.yml --- .github/workflows/sync-bugfixes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-bugfixes.yml b/.github/workflows/sync-bugfixes.yml index 13992228..0e909d75 100644 --- a/.github/workflows/sync-bugfixes.yml +++ b/.github/workflows/sync-bugfixes.yml @@ -19,6 +19,6 @@ jobs: id: pull uses: tretuna/sync-branches@1.4.0 with: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{secrets.SYNC_TOKEN}} FROM_BRANCH: main TO_BRANCH: bugfixes