27 lines
536 B
YAML
27 lines
536 B
YAML
name: bash-format
|
|
on:
|
|
workflow_dispatch:
|
|
branches: [ master, stable* ]
|
|
pull_request:
|
|
branches: [ master, stable* ]
|
|
schedule:
|
|
- cron: '30 4 * * SUN'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: "bash-format"
|
|
steps:
|
|
- name: "Check out source"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "Prepare environment"
|
|
run: |
|
|
sudo apt-get update -q -y
|
|
sudo apt-get install -q -y \
|
|
shfmt
|
|
|
|
- name: "Run shfmt..."
|
|
run: |
|
|
./scripts/bash-format.sh
|