Skip to content

Commit

Permalink
Restore ownership reset
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Apr 11, 2024
1 parent 0859ce6 commit e737758
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e737758

Please sign in to comment.