File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525jobs :
2626 sync :
27- runs-on : ubuntu-latest
28- steps :
29- - name : Checkout
30- uses : actions/checkout@v4
31- with :
32- token : ${{ secrets.PAT }}
33- ref : ${{ github.head_ref || github.ref_name }}
34-
35- - name : Symlink skills/ into agent dirs
36- run : |
37- for dir in .claude .agents; do
38- mkdir -p "$dir"
39- ln -sfn ../skills "$dir/skills"
40- done
41-
42- - name : Symlink AGENTS.md → CLAUDE.md
43- run : ' [ -f AGENTS.md ] && ln -sf AGENTS.md CLAUDE.md || true'
44-
45- - name : Commit and push if changed
46- run : |
47- git config user.name "github-actions[bot]"
48- git config user.email "github-actions[bot]@users.noreply.github.com"
49- git add .claude/skills .agents/skills CLAUDE.md
50- if git diff --cached --quiet; then
51- echo "No changes to commit"
52- exit 0
53- fi
54- BRANCH="${{ github.head_ref || github.ref_name }}"
55- git commit -m "chore(beep boop 🤖): symlink skills/ → .claude/skills, .agents/skills and AGENTS.md → CLAUDE.md"
56- git push origin HEAD:"$BRANCH"
27+ uses : NVIDIA-NeMo/FW-CI-templates/.github/workflows/_sync_skills.yml@v0.91.0
28+ secrets :
29+ PAT : ${{ secrets.PAT }}
You can’t perform that action at this time.
0 commit comments