From fb3299197a40c592002688dace9fd2caab6ba3ac Mon Sep 17 00:00:00 2001 From: mostafa Date: Thu, 23 Nov 2023 09:33:16 +0330 Subject: [PATCH] add auto-sync --- .github/workflows/autosync.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/autosync.yml diff --git a/.github/workflows/autosync.yml b/.github/workflows/autosync.yml new file mode 100644 index 00000000..7ec59ac2 --- /dev/null +++ b/.github/workflows/autosync.yml @@ -0,0 +1,20 @@ +name: Auto Sync + +on: + schedule: + - cron: '0 0 * * *' # At 00:00. https://crontab.guru/ + workflow_dispatch: # on button click + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: TobKed/github-forks-sync-action@master + with: + github_token: ${{ secrets.UPSTREAM_SYNC_TOKEN }} + upstream_repository: vuejs/docs + upstream_branch: main + target_repository: vuejs-translations/docs-fa + target_branch: upstream + force: false + tags: false