From da94b0e2d92704a227f488949056ca12a282b21b Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sat, 2 Nov 2024 00:21:54 +0100 Subject: [PATCH] Remove redundant chown commands and strip hashes from CSS/JS references --- .github/workflows/ci-build-site.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build-site.yml b/.github/workflows/ci-build-site.yml index 5692ccb3..451e500f 100644 --- a/.github/workflows/ci-build-site.yml +++ b/.github/workflows/ci-build-site.yml @@ -123,8 +123,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 old-master/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+//g' {} + + find new-master/public -type f -exec sed -i 's/\(js\|css\)?id=[^"'\''"]\+//g' {} + - name: Generate diff run: |