Skip to content

Commit

Permalink
Keep CSS\JS extension after removing hash reference in the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Nov 2, 2024
1 parent 0faead5 commit ab2be4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ jobs:
- name: Remove hashes from CSS and JS files references
run: |
find ${{ steps.set-dirs.outputs.old_dir }}/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+//g' {} +
find ${{ steps.set-dirs.outputs.new_dir }}/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+//g' {} +
find ${{ steps.set-dirs.outputs.old_dir }}/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+/\1/g' {} +
find ${{ steps.set-dirs.outputs.new_dir }}/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+/\1/g' {} +
- name: Generate diff
run: |
Expand Down

0 comments on commit ab2be4e

Please sign in to comment.