diff --git a/.github/workflows/sync-skills.yml b/.github/workflows/sync-skills.yml index 82bee83c3b..75b8c20dca 100644 --- a/.github/workflows/sync-skills.yml +++ b/.github/workflows/sync-skills.yml @@ -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. @@ -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 }}