Merge pull request #84 from redhat-documentation/refactor-plugins-doc… #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync .claude symlinks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| check: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Check symlinks are in sync | |
| run: ./scripts/sync-claude-symlinks.sh --check | |
| sync: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: main | |
| - name: Sync symlinks | |
| run: ./scripts/sync-claude-symlinks.sh | |
| - name: Commit if changed | |
| run: | | |
| git diff --quiet .claude/ && exit 0 | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add .claude/skills/ .claude/agents/ .claude/reference/ | |
| git commit -m "chore: sync .claude symlinks with plugin directories" | |
| git push |