Files
hassio-addons/.github/workflows/weekly_bashbeautify.yaml
2022-03-16 10:55:52 +01:00

32 lines
765 B
YAML

name: Weekly bash beautify
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
beautify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v1
- name: "Install beautify"
uses: BSFishy/pip-action@v1
with:
packages: |
beautysh
- name: "Run beautify"
run: |
find . -name '*.sh' | xargs beautysh --indent-size 4
- name: Create New Pull Request If Needed
uses: peter-evans/create-pull-request@v3
with:
title: "Apply beautysh changes"
branch-suffix: timestamp
commit-message: Beautify bash