fix: remove PAT #2
This file contains hidden or 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: Update Content on Dispatch | |
| on: | |
| repository_dispatch: | |
| types: [content-update] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main repo | |
| uses: actions/checkout@v4 | |
| - name: Clone content repo | |
| run: | | |
| rm -rf src/content | |
| git clone https://github.com/deviceofchoice/blog.git src/content | |
| rm -rf src/content/.git # Remove .git to avoid nested repo issues | |
| - name: Commit and push changes | |
| run: | | |
| git add src/content | |
| git commit -m "Update content from repo" || echo "No changes" | |
| git push |