From ee4444ac2526fee911232bdc82ed67bd6c1ab545 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Thu, 19 Jun 2025 19:59:02 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95560e36..a3b38c85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,11 +27,13 @@ jobs: docker run profanity ./ci-build.sh code-style: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest name: Check coding style continue-on-error: true + env: + GITHUB_WORKSPACE: ${{ runner.workspace }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # if this check fails, you have to update the number of auto types known and the list of auto types in the check below - name: Check auto types are up-to-date run: | @@ -39,10 +41,16 @@ jobs: - name: Check auto types are initialized run: | grep -P 'auto_(char|gchar|gcharv|guchar|jid|sqlite|gfd|FILE)[\w *]*;$' -r src && exit -1 || true + - name: Show workspace dir + run: | + echo "PWD: $(pwd)" + echo "GITHUB_WORKSPACE: ${{ github.workspace }}" + ls -l + ls -l src || echo "src directory not found" - name: Run clang-format - uses: jidicula/clang-format-action@v4.11.0 + uses: jidicula/clang-format-action@v4.15.0 with: - clang-format-version: '16' + clang-format-version: '20' check-path: 'src' spell-check: