Skip to content

Commit 143fb82

Browse files
authored
Fix issue generations detecting running cron jobs in the last 24 hrs. (#7637)
1 parent 5f6feba commit 143fb82

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/actions/testing_report_generation/app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def get_workflows(client, repo_name)
116116
else
117117
failure_report.add_workflow_run_and_result(workflow_text, result_text)
118118
end
119+
else
120+
puts "created_at: %s" % [latest_run.created_at]
121+
puts "conclusion: %s" % [latest_run.conclusion]
122+
result_text = "[%s](%s)" % [latest_run.conclusion.nil? ? "in_process" : latest_run.conclusion, latest_run.html_url]
123+
failure_report.add_workflow_run_and_result(workflow_text, result_text + "The cron job created_at: %s did not run in the last 24 hrs." % [latest_run.created_at])
119124
end
120125
end
121126

.github/workflows/generate_issues.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: generate_issues
22
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/generate_issues.yml'
6+
- '.github/actions/testing_report_generation**'
37
schedule:
48
# Run every day at 5am (PST) - cron uses UTC times
59
- cron: '0 13 * * *'

0 commit comments

Comments
 (0)