Skip to content

Commit

Permalink
Remove duplicate prettier command execution in CSS and JS formatting …
Browse files Browse the repository at this point in the history
…step
  • Loading branch information
paskal committed Nov 1, 2024
1 parent 9f0f688 commit edf5cd6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci-build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,12 @@ jobs:

- name: Prettify CSS and JS in public directories
run: |
# Format all CSS and JS files in both old and new public directories for easier comparison
set -x
which prettier
echo $PATH
sudo echo $PATH
sudo which prettier
sudo prettier --write "${{ steps.set-dirs.outputs.old_dir }}/public/**/*.css"
sudo prettier --write "${{ steps.set-dirs.outputs.old_dir }}/public/**/*.js"
sudo prettier --write "${{ steps.set-dirs.outputs.new_dir }}/public/**/*.css"
sudo prettier --write "${{ steps.set-dirs.outputs.new_dir }}/public/**/*.js"
# store in a variable because with sudo $PATH is different
prettier_cmd=$(which prettier)
sudo $prettier_cmd --write "${{ steps.set-dirs.outputs.old_dir }}/public/**/*.css"
sudo $prettier_cmd --write "${{ steps.set-dirs.outputs.old_dir }}/public/**/*.js"
sudo $prettier_cmd --write "${{ steps.set-dirs.outputs.new_dir }}/public/**/*.css"
sudo $prettier_cmd --write "${{ steps.set-dirs.outputs.new_dir }}/public/**/*.js"
- name: Remove itunes:subtitle from RSS feeds before comparison
run: |
Expand Down

0 comments on commit edf5cd6

Please sign in to comment.