From 90bf9854606fcf1b4a39859dbb39bd62206817ac Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 9 Feb 2026 23:28:03 +0100 Subject: [PATCH] fix: quote glob in action so git stages deeply nested md files Unquoted `**/*.md` was shell-expanded (bash globstar is off by default), only matching one level deep. Quoting it passes the pattern as a git pathspec, which recurses at any depth. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 48100ed..ef5e247 100644 --- a/action.yml +++ b/action.yml @@ -72,7 +72,7 @@ runs: run: | git config user.name "$(git log -1 --format='%an')" git config user.email "$(git log -1 --format='%ae')" - git add -A *.md **/*.md || true + git add -A -- '**/*.md' || true if git diff --cached --quiet; then echo "No changes to commit" else -- 2.51.2