[CI] Workaround for dubious ownership error
This commit is contained in:
parent
1b039e501d
commit
59b7d7df92
1 changed files with 6 additions and 3 deletions
9
.github/workflows/uncrustify.yml
vendored
9
.github/workflows/uncrustify.yml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: "Uncrustify"
|
name: "Uncrustify"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
#push:
|
push:
|
||||||
# branches: [master]
|
branches: [master]
|
||||||
#pull_request:
|
#pull_request:
|
||||||
# branches: [master]
|
# branches: [master]
|
||||||
|
|
||||||
|
@ -11,13 +11,16 @@ jobs:
|
||||||
name: Uncrustify
|
name: Uncrustify
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
run-uncrust: ${{ false || contains(github.event.head_commit.message, 'Bump version to') || contains(github.event.head_commit.message, 'CI_FORCE_UNCRUST') || github.event_name == 'pull_request' }}
|
run-uncrust: ${{ contains(github.event.head_commit.message, 'Bump version to') || contains(github.event.head_commit.message, 'CI_FORCE_UNCRUST') || github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ env.run-uncrust == 'true' }}
|
if: ${{ env.run-uncrust == 'true' }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Workaround for https://github.com/actions/runner-images/issues/6775
|
||||||
|
run: git config --global --add safe.directory /github/workspace
|
||||||
|
|
||||||
- name: Run style check
|
- name: Run style check
|
||||||
if: ${{ env.run-uncrust == 'true' }}
|
if: ${{ env.run-uncrust == 'true' }}
|
||||||
uses: coleaeason/actions-uncrustify@v1
|
uses: coleaeason/actions-uncrustify@v1
|
||||||
|
|
Loading…
Add table
Reference in a new issue