[CI] Another attempt at dubious ownership fix (CI_FORCE_UNCRUST)
This commit is contained in:
parent
0c2d40fda7
commit
773b3e10aa
1 changed files with 4 additions and 6 deletions
10
.github/workflows/uncrustify.yml
vendored
10
.github/workflows/uncrustify.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue