Skip to content

Commit eb4a38c

Browse files
committed
ci: add sync-skills workflow and rename CLAUDE.md to AGENTS.md
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 1d8d5a6 commit eb4a38c

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/sync-skills.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
name: Sync skills → agent dirs
15+
16+
on:
17+
workflow_dispatch:
18+
push:
19+
branches:
20+
- main
21+
paths:
22+
- "skills/**"
23+
- "AGENTS.md"
24+
25+
jobs:
26+
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"
File renamed without changes.

0 commit comments

Comments
 (0)