mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-02 23:30:56 +02:00
Create onpush_chmod.yaml
This commit is contained in:
29
.github/workflows/onpush_chmod.yaml
vendored
Normal file
29
.github/workflows/onpush_chmod.yaml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user