Skip to content

Commit

Permalink
GA:同步更新脚本版本中的词库版本号和词库文件词库版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Aug 19, 2024
1 parent 86897a3 commit 8baf94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/locals(greasyfork).js_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8baf94a

Please sign in to comment.