Skip to content

Commit acca576

Browse files
committed
set up initial .agents mirroring
1 parent 8c702eb commit acca576

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Mirror subdir to .agents
2+
on:
3+
push:
4+
branches: [main]
5+
paths:
6+
- 'common/src/templates/initial-dot-agents/**'
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Configure Git
16+
run: |
17+
git config user.name "github-actions[bot]"
18+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
19+
- name: Push subtree
20+
env:
21+
TOKEN: ${{ secrets.SUBTREE_PUSH_TOKEN }}
22+
run: |
23+
git subtree push --prefix=common/src/templates/initial-dot-agents \
24+
https://x-access-token:${TOKEN}@github.com/ORG/SUBDIR-REPO.git \
25+
main

0 commit comments

Comments
 (0)