From 2acbda625b2154a0c51bd7e4aa95fb954d21b72c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 22 Apr 2024 18:11:31 -0700 Subject: [PATCH] chore: troubleshoot js autoformating in workflow --- .github/workflows/javascript-format-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/javascript-format-build.yml b/.github/workflows/javascript-format-build.yml index 0ebc1d726..5ef0dd8ae 100644 --- a/.github/workflows/javascript-format-build.yml +++ b/.github/workflows/javascript-format-build.yml @@ -72,6 +72,9 @@ jobs: if: steps.changed-files-yaml.outputs.src_any_changed == 'true' run: npx prettier --write ${{ steps.changed-files-yaml.outputs.src_all_changed_files }} + - name: Debug changed files output + run: 'pwd && echo "Changed files: ${{ steps.changed-files-yaml.outputs.src_all_changed_files }}"' + - name: Commit changes if: steps.changed-files-yaml.outputs.src_any_changed == 'true' uses: EndBug/add-and-commit@v9 @@ -80,6 +83,7 @@ jobs: author_email: owncast@owncast.online message: 'Javascript formatting autofixes' add: ${{ steps.changed-files-yaml.outputs.src_all_changed_files }} + cwd: './web' # Ensure this is the correct relative directory pull: '--rebase --autostash' unused-code: