diff --git a/.github/workflows/locals(greasyfork).js_update.yaml b/.github/workflows/locals(greasyfork).js_update.yaml index 57678c4fe..3183f07af 100644 --- a/.github/workflows/locals(greasyfork).js_update.yaml +++ b/.github/workflows/locals(greasyfork).js_update.yaml @@ -45,6 +45,7 @@ jobs: locals_js_date=$(TZ='Asia/Shanghai' date -d "@${{ env.locals_js_time }}" +'%Y-%m-%d') sed -i -E "s/(@version\s*[0-9]+\.[0-9]+\.[0-9]+)(-[0-9]{4}-[0-9]{2}-[0-9]{2})?/\ \1-$locals_js_date/" "main(greasyfork).user.js" + sed -i -E "s/(@require.+435207-github-.+.js\?v[0-9]+\.[0-9]+\.[0-9]+)(-[0-9]{4}-[0-9]{2}-[0-9]{2})?/\1-$locals_js_date/" "main(greasyfork).user.js" git diff --quiet --exit-code "main(greasyfork).user.js" || \ echo "MAIN_USER_JS_IS_CHANGED=true" >> $GITHUB_ENV diff --git a/.github/workflows/main.user.js_version_update.yaml b/.github/workflows/main.user.js_version_update.yaml index fc6cd0e3a..c2b5ff785 100644 --- a/.github/workflows/main.user.js_version_update.yaml +++ b/.github/workflows/main.user.js_version_update.yaml @@ -56,6 +56,7 @@ jobs: sed -i -E "s/(@version\s*[0-9]+\.[0-9]+\.[0-9]+)(-[0-9]{4}-[0-9]{2}-[0-9]{2})?/\ \1-$locals_js_date/" main.user.js + sed -i -E "s/(@require.+locals.js\?v[0-9]+\.[0-9]+\.[0-9]+)(-[0-9]{4}-[0-9]{2}-[0-9]{2})?/\1-$locals_js_date/" main.user.js git diff --quiet --exit-code main.user.js || \ echo "MAIN_USER_JS_IS_CHANGED=true" >> $GITHUB_ENV