Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci date issue #17316

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/run_test_cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
echo "PR Updated At Timestamp: $pr_updated_at"
echo "Last Update Date Timestamp: $last_update_date"
# Check if the PR has new updates
if [[ $(date -d "$last_update_date" +%s) -gt $(date -d "$pr_updated_at" +%s)]]; then
if [[ $(date -d "$last_update_date" +%s) -gt $(date -d "$pr_updated_at" +%s) ]]; then
# If there is an update, exit the script
exit 1
exit 101
fi
# If there are no new updates, write the PR details to the output file
echo "pr_html_url=$pr_html_url" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -210,9 +210,9 @@ jobs:
echo "PR Updated At Timestamp: $pr_updated_at"
echo "Last Update Date Timestamp: $last_update_date"
# Check if the PR has new updates
if [[ $(date -d "$last_update_date" +%s) -gt $(date -d "$pr_updated_at" +%s)]]; then
if [[ $(gdate -d "$last_update_date" +%s) -gt $(gdate -d "$pr_updated_at" +%s) ]]; then
# If there is an update, exit the script
exit 1
exit 101
fi
# If there are no new updates, write the PR details to the output file
echo "pr_html_url=$pr_html_url" >> $GITHUB_OUTPUT
Expand Down
Loading