From e2dfa09a61b6c00cf1c6f9487843257cfc443bcd Mon Sep 17 00:00:00 2001 From: Takuma HANATANI Date: Sun, 1 Nov 2020 11:47:57 +0900 Subject: [PATCH 1/2] chore(CI): Add upstream sync script --- .github/workflows/sync.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml new file mode 100644 index 00000000..a0aeac69 --- /dev/null +++ b/.github/workflows/sync.yaml @@ -0,0 +1,33 @@ +name: todo + +on: + schedule: + - cron: 0 0 * * * + +jobs: + cleanup: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + with: + ref: master + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + if: steps.cache.outputs.cache-hit != 'true' + with: + node-version: ${{ matrix.node-version }} + - name: Add upstream + run: | + git add remote upstream git@github.com:vuejs/docs-next.git + - name: Pull upstream changes + run: | + git add remote upstream git@github.com:vuejs/docs-next.git + - name: Sync it + run: | + git push origin master + From bcebc3688ff2cf78068cf1e1d5693b195a8ec5f7 Mon Sep 17 00:00:00 2001 From: Takuma HANATANI Date: Tue, 3 Nov 2020 20:50:09 +0900 Subject: [PATCH 2/2] Update .github/workflows/sync.yaml --- .github/workflows/sync.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index a0aeac69..fa810656 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -13,7 +13,7 @@ jobs: node-version: [12.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: ref: master - name: Use Node.js ${{ matrix.node-version }} @@ -30,4 +30,3 @@ jobs: - name: Sync it run: | git push origin master -