From 3da980a764037dff5e6468c015e2324dba9bfbd8 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sat, 2 Nov 2024 00:27:05 +0100 Subject: [PATCH] Remove query string hashes from CSS and JS file paths in directories --- .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 451e500f..3195b50e 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 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' {} + + 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' {} + - name: Generate diff run: |