Skip to content

Commit e0cfa32

Browse files
authored
fix: use correct bash syntax (#4349)
1 parent f02469a commit e0cfa32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
head_sha="$(echo "$pr" | jq -r .head.sha)"
3333
updated_at="$(echo "$pr" | jq -r .updated_at)"
3434
35-
if [[ $(date -d $updated_at) > $(date -d $COMMENT_AT) ]]; exit 1; fi
35+
if [[ $(date -d "$updated_at" +%s) -gt $(date -d "$COMMENT_AT" +%s) ]]; then
36+
exit 1
37+
fi
3638
3739
echo "head_sha=$head_sha" >> $GITHUB_OUTPUT
3840

0 commit comments

Comments
 (0)