Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 4 additions & 31 deletions .github/workflows/sync-skills.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -24,33 +24,6 @@ on:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: ${{ github.head_ref || github.ref_name }}

- name: Symlink skills/ into agent dirs
run: |
for dir in .claude .agents; do
mkdir -p "$dir"
ln -sfn ../skills "$dir/skills"
done

- name: Symlink AGENTS.md → CLAUDE.md
run: '[ -f AGENTS.md ] && ln -sf AGENTS.md CLAUDE.md || true'

- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .claude/skills .agents/skills CLAUDE.md
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
BRANCH="${{ github.head_ref || github.ref_name }}"
git commit -m "chore(beep boop 🤖): symlink skills/ → .claude/skills, .agents/skills and AGENTS.md → CLAUDE.md"
git push origin HEAD:"$BRANCH"
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_sync_skills.yml@v0.91.0
secrets:
PAT: ${{ secrets.PAT }}
Loading