From ede5ceea348b0b1c1bbe8ccd0d75167ee3cc53bf Mon Sep 17 00:00:00 2001 From: muzimuzhi Date: Fri, 16 Aug 2024 08:15:34 +0800 Subject: [PATCH] fix(ci): disable git safe.directory `actions/checkout` failed to keep `safe.directory` setting in containers. --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5dd30a..1b1bea3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: |