From af6fb5f0d458ed81f6a1bf93930ec816ad9eb6c5 Mon Sep 17 00:00:00 2001 From: Mizux Date: Thu, 14 Sep 2023 11:54:10 +0200 Subject: [PATCH] ci: Fix clang-format (#336) Fix #311 --- .github/workflows/Dockerfile | 1 + .github/workflows/clang_format.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile index 8d6f3dc..28371cb 100644 --- a/.github/workflows/Dockerfile +++ b/.github/workflows/Dockerfile @@ -3,3 +3,4 @@ FROM alpine:edge # Install system build dependencies RUN apk add --no-cache git clang-extra-tools +RUN git config --global --add safe.directory /repo diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml index 1afd391..2ab0de0 100644 --- a/.github/workflows/clang_format.yml +++ b/.github/workflows/clang_format.yml @@ -7,7 +7,7 @@ jobs: clang-format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Fetch origin/main run: git fetch origin main - name: List of changed file(s)