From e7377588614479ac35f90416719bb2f95022c0c0 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 11 Apr 2024 09:43:44 -0700 Subject: [PATCH] Restore ownership reset --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index a47861b..4ba48a4 100644 --- a/action.yml +++ b/action.yml @@ -126,6 +126,18 @@ runs: ### Cleanup + # Fix - Docker can take file ownership, causing a cleanup fail + - shell: bash + if: steps.diff.outputs.triggered == 'true' + id: get_uid + run: | + # User for workstation ownership reset/fix + echo "uid=$(id -u ${USER})" >> $GITHUB_OUTPUT + - uses: peter-murray/reset-workspace-ownership-action@v1 + if: steps.diff.outputs.triggered == 'true' + with: + user_id: ${{ steps.get_uid.outputs.uid }} + # Fix - Clone for action.yml and other verifications - name: Checkout Action repo to pass tests if: always() && inputs.repository != github.repository