mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 23:01:49 +02:00
Update onpush_superlinter.yml
This commit is contained in:
7
.github/workflows/onpush_superlinter.yml
vendored
7
.github/workflows/onpush_superlinter.yml
vendored
@@ -21,10 +21,9 @@ jobs:
|
|||||||
- name: Run script file
|
- name: Run script file
|
||||||
id: chmod
|
id: chmod
|
||||||
run: |
|
run: |
|
||||||
# shellcheck disable=SC2086,SC2046,SC2044
|
git ls-files --stage | grep ".sh$" | cut -f2 | xargs -d '\n' git update-index --chmod=+x && \
|
||||||
for f in $(find . -name '*.sh' -o -regex './s?bin/[^/]+' -o -regex './usr/sbin/[^/]+' -o -regex './usr/lib/[^/]+'); do
|
git grep --files-with-matches 'bash' | cut -f2 | xargs -d '\n' git update-index --chmod=+x && \
|
||||||
( cd "$(dirname $f)" && git update-index --chmod=+x "$(basename $f)" )
|
git commit -m "Changing file permissions"
|
||||||
done
|
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Commit if needed
|
- name: Commit if needed
|
||||||
if: steps.sort.outputs.changed != ''
|
if: steps.sort.outputs.changed != ''
|
||||||
|
|||||||
Reference in New Issue
Block a user