From 773b3e10aad5c9779b5e760a1eb80d8c6b0c2f14 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 29 Jan 2023 18:28:01 +0100 Subject: [PATCH] [CI] Another attempt at dubious ownership fix (CI_FORCE_UNCRUST) --- .github/workflows/uncrustify.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/uncrustify.yml b/.github/workflows/uncrustify.yml index 2a77f690..cccdd4aa 100644 --- a/.github/workflows/uncrustify.yml +++ b/.github/workflows/uncrustify.yml @@ -2,7 +2,7 @@ name: "Uncrustify" on: push: - branches: [master, uncrustify] + branches: [master] pull_request: branches: [master] @@ -15,13 +15,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 - - # attempt to resolve "dubious ownership" error (https://github.com/actions/runner-images/issues/6775) - - name: Change Owner of Container Working Directory - run: chown root:root . + if: ${{ env.run-uncrust == 'true' }} + uses: actions/checkout@v3 - name: Run style check + if: ${{ env.run-uncrust == 'true' }} uses: coleaeason/actions-uncrustify@v1 with: configPath: 'uncrustify.cfg'