Commit 1ec80dc
authored
Fix publish action for actions/checkout@v6 worktree credentials (#133)
actions/checkout@v6 moved credentials from .git/config to a separate file
using includeIf for security (actions/checkout#2286). This breaks quarto
publish gh-pages which uses git worktrees, since the includeIf condition
doesn't match worktree paths.
The fix propagates the credential configuration to worktrees by adding a
second includeIf rule that matches .git/worktrees/* paths. This is backward
compatible - it only runs if v6-style credentials exist.
Also updates test.yaml to use checkout@v6 and documents v6 compatibility
in publish/README.md.1 parent 66f8a39 commit 1ec80dc
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
0 commit comments