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
8 changes: 6 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ jobs:

- name: Commit and push if changed
run: |
if git diff --quiet skills/; then
# Stage first, then gate on the staged diff. `git diff` (no --cached)
# ignores untracked files, so a brand-new file (a new skill, or a new
# reference) would be invisible here and the job would exit before
# committing it.
git add skills/
if git diff --cached --quiet skills/; then
echo "No skill changes — nothing to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add skills/
git commit -m "chore: sync skills"
git push
Loading