Skip to content

Commit 446d31c

Browse files
committed
ci: use _sync_skills.yml@v0.91.0 reusable workflow
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent eb4a38c commit 446d31c

1 file changed

Lines changed: 3 additions & 30 deletions

File tree

.github/workflows/sync-skills.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,6 @@ on:
2424

2525
jobs:
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 }}

0 commit comments

Comments
 (0)