diff --git a/.github/workflows/beautysh.yml b/.github/workflows/beautysh.yml index c0e1b12..f77f7f0 100644 --- a/.github/workflows/beautysh.yml +++ b/.github/workflows/beautysh.yml @@ -11,7 +11,7 @@ on: description: Options to beautysh type: string required: false - default: --force-function-style paronly + default: --force-function-style paronly --variable-style braces jobs: beautysh: name: Run beautysh @@ -23,9 +23,7 @@ jobs: - name: Create requirements.txt run: | mkdir -p .github/workflows/es-progress/.github - # it seems beautysh in Python 3.11+ requires setuptools explicitly - echo setuptools > .github/workflows/es-progress/.github/requirements.txt - echo beautysh >> .github/workflows/es-progress/.github/requirements.txt + echo beautysh > .github/workflows/es-progress/.github/requirements.txt - name: Setup Python uses: actions/setup-python@v5 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 957775f..f170023 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: uses: ./.github/workflows/beautysh.yml with: dir: tests/workflows - params: --force-function-style fnpar --indent-size 2 + params: --force-function-style fnpar --indent-size 2 --variable-style braces test-mkdocs: name: Test workflow (mkdocs) diff --git a/tests/workflows/test.sh b/tests/workflows/test.sh index 897ea82..fb829f7 100755 --- a/tests/workflows/test.sh +++ b/tests/workflows/test.sh @@ -14,7 +14,7 @@ IFS=$'\n\t' for f in *.m3u do - grep -qi "hq.*mp3" "$f" \ + grep -qi "hq.*mp3" "${f}" \ && echo -e "'Playlist ${f} contains a HQ file in mp3 format'" done