0

chore: troubleshoot js autoformating in workflow

This commit is contained in:
Gabe Kangas 2024-04-22 18:11:31 -07:00
parent 439da013d8
commit 2acbda625b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -72,6 +72,9 @@ jobs:
if: steps.changed-files-yaml.outputs.src_any_changed == 'true' if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
run: npx prettier --write ${{ steps.changed-files-yaml.outputs.src_all_changed_files }} 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 - name: Commit changes
if: steps.changed-files-yaml.outputs.src_any_changed == 'true' if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: EndBug/add-and-commit@v9 uses: EndBug/add-and-commit@v9
@ -80,6 +83,7 @@ jobs:
author_email: owncast@owncast.online author_email: owncast@owncast.online
message: 'Javascript formatting autofixes' message: 'Javascript formatting autofixes'
add: ${{ steps.changed-files-yaml.outputs.src_all_changed_files }} add: ${{ steps.changed-files-yaml.outputs.src_all_changed_files }}
cwd: './web' # Ensure this is the correct relative directory
pull: '--rebase --autostash' pull: '--rebase --autostash'
unused-code: unused-code: