aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMizux <mizux.dev@gmail.com>2023-09-14 11:54:10 +0200
committerGitHub <noreply@github.com>2023-09-14 11:54:10 +0200
commitaf6fb5f0d458ed81f6a1bf93930ec816ad9eb6c5 (patch)
tree414e82fe6a21cf61371a2bda3a384d6d2e2d9b9a
parent312e990c6f86f5da0c83a5ffd5aae405947c6549 (diff)
downloadcpu_features-af6fb5f0d458ed81f6a1bf93930ec816ad9eb6c5.tar.gz
ci: Fix clang-format (#336)
Fix #311
-rw-r--r--.github/workflows/Dockerfile1
-rw-r--r--.github/workflows/clang_format.yml2
2 files changed, 2 insertions, 1 deletions
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)