This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
docs: upstream #410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync upstream | |
on: | |
push: | |
branches: [main] | |
jobs: | |
sync-upstream: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Sync upstream | |
run: bash script/sync-upstream.sh | |
env: | |
DESTINATION_BRANCH: main | |
DESTINATION_DIRECTORY: 'src/content/docs' | |
DESTINATION_REPOSITORY: planetscale/www | |
PAT: ${{ secrets.PAT }} | |
SOURCE_DIRECTORY: docs |