Skip to content

Commit

Permalink
排查异常3
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Dec 15, 2023
1 parent a5c7c65 commit dc6da0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ jobs:
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")
git log --grep="^main.user.js Update to version" -n 1 --pretty=format:"%H"
# 对应的时间戳
release_commit_timestamp=$(git show -s --format=%ct $release_commit_sha)
git show -s --format=%ct $release_commit_sha
# 最近的tag的时间戳
latest_tag_commit_sha=$(git rev-list --tags --max-count=1)
git rev-list --tags --max-count=1
latest_tag_commit_timestamp=$(git show -s --format=%ct $latest_tag_commit_sha)
git show -s --format=%ct $latest_tag_commit_sha
echo "release_commit_sha=$release_commit_sha"
echo "release_commit_timestamp=$release_commit_timestamp"
Expand Down

0 comments on commit dc6da0c

Please sign in to comment.