From 771d597bf60be4accfa0502977d0312eff33cced Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 19 Dec 2022 23:20:08 +0100 Subject: [PATCH] Update onpush_superlinter.yml --- .github/workflows/onpush_superlinter.yml | 25 +++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/onpush_superlinter.yml b/.github/workflows/onpush_superlinter.yml index a92fb9e9b..042859d17 100644 --- a/.github/workflows/onpush_superlinter.yml +++ b/.github/workflows/onpush_superlinter.yml @@ -16,20 +16,17 @@ jobs: chmod_execute: runs-on: ubuntu-20.04 steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Run script file - id: chmod - run: | - git ls-files --stage | grep ".sh$" | cut -f2 | xargs -d '\n' git update-index --chmod=+x && \ - git grep --files-with-matches 'bash' | cut -f2 | xargs -d '\n' git update-index --chmod=+x - shell: bash - - name: Commit if needed - if: steps.chmod.outputs.changed != '' - uses: EndBug/add-and-commit@v9 - with: - message: "Github bot : script executable" - default_author: github_actions + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Make scripts executable + run: | + echo "Starting" + find . -type f -iname "*.sh" -exec chmod +x {} \; + - name: Commit if needed + uses: EndBug/add-and-commit@v9 + with: + message: "GitHub bot : scripts executable" + default_author: github_actions run-lint: runs-on: ubuntu-latest