We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c702eb commit acca576Copy full SHA for acca576
.github/workflows/mirror-dot-agents.yml
@@ -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
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