Skip to content

Commit e4b30d0

Browse files
committed
chore(workflow): sync rules to .agent/rules
1 parent 9c325a0 commit e4b30d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/sync-cursor-rules.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,21 @@ jobs:
7878
cp -v source_repo/.cursor/worktrees.json target_repo/.cursor/worktrees.json
7979
fi
8080
81+
# Sync to .agent/rules
82+
mkdir -p target_repo/.agent
83+
rm -rf target_repo/.agent/rules
84+
if [ -d "source_repo/.cursor/rules" ]; then
85+
cp -rv source_repo/.cursor/rules target_repo/.agent/
86+
fi
87+
8188
- name: 💾 Review & Push
8289
working-directory: target_repo
8390
run: |
8491
TARGET_BRANCH=${{ steps.branch_info.outputs.branch }}
8592
git config user.name "mynameistito"
8693
git config user.email "github@mynameistito.com"
8794
git add .cursor
95+
git add .agent
8896
8997
STATUS=$(git status -s)
9098
if [[ -n "$STATUS" ]]; then

0 commit comments

Comments
 (0)