ssh test #4
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: Mirror subdir to .agents | |
| on: | |
| push: | |
| branches: [main] | |
| # paths: | |
| # - 'common/src/templates/initial-agents-dir/**' | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Push subtree | |
| env: | |
| TOKEN: ${{ secrets.CODEBUFF_GITHUB_TOKEN }} | |
| run: | | |
| git subtree push --prefix=common/src/templates/initial-agents-dir \ | |
| https://x-access-token:${TOKEN}@github.com/codebuffai/codebuff-dot-agents.git \ | |
| main | |
| - name: Open interactive debug shell | |
| if: ${{ failure() }} | |
| uses: mxschmitt/action-tmate@v3 | |
| timeout-minutes: 15 # optional guard |