Skip to content

Commit

Permalink
fix(ci): disable git safe.directory
Browse files Browse the repository at this point in the history
`actions/checkout` failed to keep `safe.directory` setting in
containers.
  • Loading branch information
muzimuzhi committed Aug 16, 2024
1 parent 219b919 commit ede5cee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ jobs:
engine: [pdflatex, lualatex, xelatex]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

# `actions/checkout` default input `set-safe-directory: true` doesn't work
# for containers.
# see for example https://github.com/actions/checkout/issues/766
- name: Fixup Run actions/checkout
run: git config --global --add safe.directory '*'

- name: 'Install pgf-pie'
run: |
Expand Down

0 comments on commit ede5cee

Please sign in to comment.