Skip to content

ssh test

ssh test #4

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