diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 00000000..17486737 --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,5 @@ +nextauthjs/next-auth-example-sync-test@main: + - .github/FUNDING.yml + - source: apps/example + dest: . + deleteOrphaned: true \ No newline at end of file diff --git a/.github/workflows/sync-example.yml b/.github/workflows/sync-example.yml new file mode 100644 index 00000000..0a214f68 --- /dev/null +++ b/.github/workflows/sync-example.yml @@ -0,0 +1,16 @@ +name: Sync Example Repository +on: + push: + branches: + - main + workflow_dispatch: +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Run GitHub File Sync + uses: BetaHuhn/repo-file-sync-action@v1 + with: + GH_PAT: ${{ secrets.SYNC_EXAMPLE_PAT }}