Skip to content

Commit

Permalink
GA:修正查询的提交标题
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Sep 28, 2024
1 parent 24783a3 commit 2a71cbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/locals(greasyfork).js_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Sync update locals(greasyfork).js
run: |
# 获得最近以`main.user.js Update to version`开头的提交的引用
ref=$(git log --grep="^main.user.js Update to version" -n 1 --pretty=format:"%H")
ref=$(git log --grep="^main.user.js Update to" -n 1 --pretty=format:"%H")
# 获取该提交中`locals.js`的文件时间, 并设置环境变量
locals_js_time=$(git log -1 --format=%at $ref -- locals.js)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: |
# 最近提交是否存在tag
if [ ! "$(git tag --contains ${{ github.sha }})" ]; then
# 获得最近以`main.user.js Update to version`开头的提交的sha和时间戳
release_commit_sha=$(git log --grep="^main.user.js Update to version" -n 1 --pretty=format:"%H")
# 获得最近以`main.user.js Update to`开头的提交的sha和时间戳
release_commit_sha=$(git log --grep="^main.user.js Update to" -n 1 --pretty=format:"%H")
release_commit_timestamp=$(git show -s --format=%ct $release_commit_sha)
# 最近的tag对应提交的sha和时间戳
Expand Down

0 comments on commit 2a71cbd

Please sign in to comment.