mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-05 21:48:47 +02:00
Update onpush_builder.yaml
This commit is contained in:
45
.github/workflows/onpush_builder.yaml
vendored
45
.github/workflows/onpush_builder.yaml
vendored
@@ -14,27 +14,6 @@ on:
|
|||||||
- "**/config.*"
|
- "**/config.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
make-executable:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repo
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Make scripts executable
|
|
||||||
run: |
|
|
||||||
echo "Starting"
|
|
||||||
git config core.filemode true
|
|
||||||
# shellcheck disable=SC2086,SC2046
|
|
||||||
#git update-index --chmod=+x $(find . -type f -iname "*.sh")
|
|
||||||
chmod u+x $(find . -type f -iname "*.sh")
|
|
||||||
#git commit -am "fixing the script permissions..."
|
|
||||||
- name: Commit if needed
|
|
||||||
uses: EndBug/add-and-commit@v9
|
|
||||||
with:
|
|
||||||
commit: -u
|
|
||||||
message: "GitHub bot : scripts executable"
|
|
||||||
default_author: github_actions
|
|
||||||
|
|
||||||
check-addon-changes:
|
check-addon-changes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: make-executable
|
needs: make-executable
|
||||||
@@ -50,6 +29,30 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
filters: .github/paths-filter.yml
|
filters: .github/paths-filter.yml
|
||||||
|
|
||||||
|
make-executable:
|
||||||
|
if: ${{ needs.check-addon-changes.outputs.changedAddons != '[]' }}
|
||||||
|
needs: check-addon-changes
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Make scripts executable
|
||||||
|
run: |
|
||||||
|
echo "Starting"
|
||||||
|
git config core.filemode true
|
||||||
|
# shellcheck disable=SC2086,SC2046
|
||||||
|
#git update-index --chmod=+x $(find "$path" -type f -iname "*.sh")
|
||||||
|
chmod u+x $(find "$path" -type f -iname "*.sh")
|
||||||
|
#git commit -am "fixing the script permissions..."
|
||||||
|
with:
|
||||||
|
path: "./${{ matrix.addon }}"
|
||||||
|
- name: Commit if needed
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
commit: -u
|
||||||
|
message: "GitHub bot : scripts executable"
|
||||||
|
default_author: github_actions
|
||||||
|
|
||||||
lint_config:
|
lint_config:
|
||||||
if: ${{ needs.check-addon-changes.outputs.changedAddons != '[]' }}
|
if: ${{ needs.check-addon-changes.outputs.changedAddons != '[]' }}
|
||||||
needs: check-addon-changes
|
needs: check-addon-changes
|
||||||
|
|||||||
Reference in New Issue
Block a user