sync-g-slave.yml 990 B

123456789101112131415161718192021222324252627282930313233
  1. name: Sync g-slave to standalone repo
  2. on:
  3. push:
  4. branches: [main]
  5. paths:
  6. - 'commands/g-slave.md'
  7. jobs:
  8. sync:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout claude-mods
  12. uses: actions/checkout@v4
  13. - name: Prepare g-slave.md (strip frontmatter)
  14. run: |
  15. # Remove YAML frontmatter for standalone repo
  16. sed '1{/^---$/!q;};1,/^---$/d' commands/g-slave.md > g-slave-clean.md
  17. - name: Push to g-slave repo
  18. uses: dmnemec/copy_file_to_another_repo_action@main
  19. env:
  20. API_TOKEN_GITHUB: ${{ secrets.G_SLAVE_SYNC_TOKEN }}
  21. with:
  22. source_file: 'g-slave-clean.md'
  23. destination_repo: '0xDarkMatter/g-slave'
  24. destination_folder: '/'
  25. destination_branch: 'main'
  26. user_email: 'github-actions[bot]@users.noreply.github.com'
  27. user_name: 'github-actions[bot]'
  28. commit_message: 'sync: Update from claude-mods'
  29. rename: 'g-slave.md'