chore: troubleshoot js autoformating in workflow
This commit is contained in:
parent
439da013d8
commit
2acbda625b
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user