mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update onpush_superlinter.yml
This commit is contained in:
25
.github/workflows/onpush_superlinter.yml
vendored
25
.github/workflows/onpush_superlinter.yml
vendored
@@ -16,20 +16,17 @@ jobs:
|
|||||||
chmod_execute:
|
chmod_execute:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Run script file
|
- name: Make scripts executable
|
||||||
id: chmod
|
run: |
|
||||||
run: |
|
echo "Starting"
|
||||||
git ls-files --stage | grep ".sh$" | cut -f2 | xargs -d '\n' git update-index --chmod=+x && \
|
find . -type f -iname "*.sh" -exec chmod +x {} \;
|
||||||
git grep --files-with-matches 'bash' | cut -f2 | xargs -d '\n' git update-index --chmod=+x
|
- name: Commit if needed
|
||||||
shell: bash
|
uses: EndBug/add-and-commit@v9
|
||||||
- name: Commit if needed
|
with:
|
||||||
if: steps.chmod.outputs.changed != ''
|
message: "GitHub bot : scripts executable"
|
||||||
uses: EndBug/add-and-commit@v9
|
default_author: github_actions
|
||||||
with:
|
|
||||||
message: "Github bot : script executable"
|
|
||||||
default_author: github_actions
|
|
||||||
|
|
||||||
run-lint:
|
run-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user