name: zZPiglet-sync on: schedule: - cron: '1 */3 * * *' workflow_dispatch: watch: types: started repository_dispatch: types: sync-zZPiglet-Task jobs: repo-sync: env: PAT: ${{ secrets.PAT }} runs-on: ubuntu-latest if: github.event.repository.owner.id == github.event.sender.id steps: - uses: actions/checkout@v2 with: persist-credentials: false - name: sync zZPiglet-Task uses: repo-sync/github-sync@v2 if: env.PAT with: source_repo: "https://github.com/zZPiglet/Task.git" source_branch: "master" destination_branch: "zZPiglet" github_token: ${{ secrets.PAT }}