diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index d2151ea277..f652d7684e 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -41,7 +41,9 @@ jobs: head_sha="$(echo "$pr" | jq -r .head.sha)" updated_at="$(echo "$pr" | jq -r .updated_at)" - if [[ $(date -d $updated_at) > $(date -d $COMMENT_AT) ]]; exit 1; fi + if [[ $(date -d "$updated_at" +%s) -gt $(date -d "$COMMENT_AT" +%s) ]]; then + exit 1 + fi echo "head_sha=$head_sha" >> $GITHUB_OUTPUT - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7