From e8caba77239b605f84691ebec8936f53e04b58e6 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Thu, 31 Jul 2025 15:56:18 -0400 Subject: [PATCH] Add workflow to sync quickstart to pipecat-quickstart repo --- .github/workflows/sync-quickstart.yaml | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/sync-quickstart.yaml diff --git a/.github/workflows/sync-quickstart.yaml b/.github/workflows/sync-quickstart.yaml new file mode 100644 index 000000000..0f3908003 --- /dev/null +++ b/.github/workflows/sync-quickstart.yaml @@ -0,0 +1,56 @@ +name: Sync Quickstart to pipecat-quickstart repo + +on: + push: + branches: [main] + paths: + - 'examples/quickstart/**' + workflow_dispatch: # Manual trigger + +jobs: + sync-quickstart: + runs-on: ubuntu-latest + steps: + - name: Checkout main repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Checkout quickstart repo + uses: actions/checkout@v4 + with: + repository: pipecat-ai/pipecat-quickstart + token: ${{ secrets.QUICKSTART_SYNC_TOKEN }} + path: quickstart-repo + + - name: Sync files (excluding READMEs) + run: | + # Copy code files only, skip READMEs + cp examples/quickstart/bot.py quickstart-repo/ + cp examples/quickstart/requirements.txt quickstart-repo/ + cp examples/quickstart/env.example quickstart-repo/ + + # Copy any other files that aren't README.md + find examples/quickstart -type f \ + -not -name "README.md" \ + -not -name "*.md" \ + -exec cp {} quickstart-repo/ \; + + - name: Commit and push changes + run: | + cd quickstart-repo + git config user.name "GitHub Action" + git config user.email "action@github.com" + git add . + + # Only commit if there are changes + if ! git diff --staged --quiet; then + git commit -m "Sync from pipecat main repo + + Updated files from examples/quickstart/ + Commit: ${{ github.sha }} + " + git push + else + echo "No changes to sync" + fi