Files
hassio-addons/.github/workflows/weekly_bashbeautify.yaml
dependabot[bot] 1704445923 Bump actions/setup-python from 1 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 1 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 18:46:01 +00:00

32 lines
776 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@v3
- name: "Install beautify"
uses: BSFishy/pip-action@v1
with:
packages: |
beautysh
- name: "Run beautify"
run: |
find . -name '*.sh' -print0 | xargs -0 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