From 35e027cb0b1b2addbfceb41784f2ff718f63b08e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:36:01 +0200 Subject: [PATCH 1/3] Create onpush_chmod.yaml --- .github/workflows/onpush_chmod.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/onpush_chmod.yaml diff --git a/.github/workflows/onpush_chmod.yaml b/.github/workflows/onpush_chmod.yaml new file mode 100644 index 000000000..85038c25c --- /dev/null +++ b/.github/workflows/onpush_chmod.yaml @@ -0,0 +1,29 @@ +# yamllint disable rule:line-length +--- +name: Make scripts executable + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + chmod_execute: + runs-on: ubuntu-20.04 + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Run script file + id: chmod + run: | + find . -name *.sh -print0 | xargs -0 chmod +x && \ + grep -r '#!/' . -print0 | xargs -0 chmod +x + shell: bash + - name: Commit if needed + if: steps.sort.outputs.changed != '' + uses: EndBug/add-and-commit@v9 + with: + message: "Github bot : script executable" + default_author: github_actions From f51afcd7ad1d4b28a09c7c5ab7a11b871194bda4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:37:05 +0200 Subject: [PATCH 2/3] Update onpush_chmod.yaml --- .github/workflows/onpush_chmod.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/onpush_chmod.yaml b/.github/workflows/onpush_chmod.yaml index 85038c25c..a18a417ce 100644 --- a/.github/workflows/onpush_chmod.yaml +++ b/.github/workflows/onpush_chmod.yaml @@ -19,7 +19,7 @@ jobs: id: chmod run: | find . -name *.sh -print0 | xargs -0 chmod +x && \ - grep -r '#!/' . -print0 | xargs -0 chmod +x + grep -r '#!/' . | xargs chmod +x shell: bash - name: Commit if needed if: steps.sort.outputs.changed != '' From c9e14c2c4888a5cafa7abc38a7805331e2cc741b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:40:37 +0200 Subject: [PATCH 3/3] Update onpush_chmod.yaml --- .github/workflows/onpush_chmod.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/onpush_chmod.yaml b/.github/workflows/onpush_chmod.yaml index a18a417ce..9f9ff5204 100644 --- a/.github/workflows/onpush_chmod.yaml +++ b/.github/workflows/onpush_chmod.yaml @@ -19,7 +19,7 @@ jobs: id: chmod run: | find . -name *.sh -print0 | xargs -0 chmod +x && \ - grep -r '#!/' . | xargs chmod +x + grep -rl '#!/' . | xargs chmod +x shell: bash - name: Commit if needed if: steps.sort.outputs.changed != ''