From 44aede18bb1562514b92e53a5b913dc9e7d4147d Mon Sep 17 00:00:00 2001 From: k-asm Date: Mon, 3 Jun 2024 20:05:02 +0900 Subject: [PATCH] fix: Execution Failure (#12) * Fix git error introduced in git 2.35.2 * Update reviewdog version * Update elixir and erlang OTP version --- .github/workflows/reviewdog.yml | 4 ++-- Dockerfile | 4 ++-- README.md | 2 +- entrypoint.sh | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 9bdcf0a..b183948 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,8 +9,8 @@ jobs: uses: actions/checkout@v2 - uses: erlef/setup-beam@v1 with: - otp-version: 24.0 - elixir-version: 1.12 + otp-version: 26.2.5 + elixir-version: 1.16-otp-26 - name: Install Dependencies run: | mix local.rebar --force diff --git a/Dockerfile b/Dockerfile index 5c604b4..324fe04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM elixir:1.12-alpine +FROM elixir:1.16-alpine -RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ v0.13.0 +RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ v0.17.4 RUN apk --update add git && \ rm -rf /var/lib/apt/lists/* && \ rm /var/cache/apk/* diff --git a/README.md b/README.md index 176c367..a30b6fd 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ jobs: name: runner / credo runs-on: ubuntu-latest container: - image: elixir:1.12-slim + image: elixir:1.16-slim steps: - uses: actions/checkout@v2 - name: Install Dependencies diff --git a/entrypoint.sh b/entrypoint.sh index d9d7926..9b969f6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,8 @@ cd "$GITHUB_WORKSPACE" +git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1 + export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" mix credo suggest --strict --format=flycheck \