diff options
| author | Claude <noreply@anthropic.com> | 2026-03-20 20:30:40 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-03-20 20:30:40 +0000 |
| commit | 802464cff3dafb2bf9951d69c24d56fb0edecc06 (patch) | |
| tree | 24f005b7fac10e3abb24705f3e71ca23f0078569 | |
| parent | af6b2c490b4d12188ecd8c38ecdf5f9c16df141b (diff) | |
Fix frontmatter validation to skip deleted filesclaude/slack-add-claude-plugin-marketplace
The workflow was passing deleted files to the validation script, which
failed when trying to read them. Add --diff-filter=AMRC to only process
Added, Modified, Renamed, and Copied files.
| -rw-r--r-- | .github/workflows/validate-frontmatter.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/validate-frontmatter.yml b/.github/workflows/validate-frontmatter.yml index 148364d4..9de76f70 100644 --- a/.github/workflows/validate-frontmatter.yml +++ b/.github/workflows/validate-frontmatter.yml @@ -21,7 +21,8 @@ jobs: - name: Get changed frontmatter files id: changed run: | - FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | grep -E '(agents/.*\.md|skills/.*/SKILL\.md|commands/.*\.md)$' || true) + # Use diff-filter=AMRC to exclude deleted files (D) - only Added, Modified, Renamed, Copied + FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only --diff-filter=AMRC | grep -E '(agents/.*\.md|skills/.*/SKILL\.md|commands/.*\.md)$' || true) echo "files<<EOF" >> "$GITHUB_OUTPUT" echo "$FILES" >> "$GITHUB_OUTPUT" echo "EOF" >> "$GITHUB_OUTPUT" |
