Looks like we were using the changed-files action incorrectly. Hopefully this fixes it?
This commit is contained in:
parent
a319d99994
commit
839f926f69
12
.github/workflows/javascript-format-build.yml
vendored
12
.github/workflows/javascript-format-build.yml
vendored
@ -64,21 +64,21 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
if: steps.changed-files.outputs.src_any_changed == 'true'
|
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
|
||||||
run: npx eslint --fix ${{ steps.changed-files.outputs.src_all_changed_files }}
|
run: npx eslint --fix ${{ steps.changed-files-yaml.outputs.src_all_changed_files }}
|
||||||
|
|
||||||
- name: Prettier
|
- name: Prettier
|
||||||
if: steps.changed-files.outputs.src_any_changed == 'true'
|
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
|
||||||
run: npx prettier --write ${{ steps.changed-files.outputs.src_all_changed_files }}
|
run: npx prettier --write ${{ steps.changed-files-yaml.outputs.src_all_changed_files }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
if: steps.changed-files.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
|
||||||
with:
|
with:
|
||||||
author_name: Owncast
|
author_name: Owncast
|
||||||
author_email: owncast@owncast.online
|
author_email: owncast@owncast.online
|
||||||
message: 'Javascript formatting autofixes'
|
message: 'Javascript formatting autofixes'
|
||||||
add: ${{ steps.changed-files.outputs.src_all_changed_files }}
|
add: ${{ steps.changed-files-yaml.outputs.src_all_changed_files }}
|
||||||
pull: '--rebase --autostash'
|
pull: '--rebase --autostash'
|
||||||
|
|
||||||
unused-code:
|
unused-code:
|
||||||
|
Loading…
Reference in New Issue
Block a user