mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
fix 'retry jobs' failing when there's no job to retry...
This commit is contained in:
1 parent
140fa6cebf
commit
8346a60971
1 file changed
+1
-1
@@ -14,7 +14,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
min=$(date -u -d '5 hours ago' +%s)
|
min=$(date -u -d '5 hours ago' +%s)
|
||||||
max=$(date -u -d '2 hours ago' +%s)
|
max=$(date -u -d '2 hours ago' +%s)
|
||||||
gh api --paginate "/repos/$GITHUB_REPOSITORY/actions/workflows/nightly.yml/runs?status=failure&per_page=100" --jq '.workflow_runs[] | select(.run_attempt == 1) | [.id, .updated_at] | @tsv' |
|
gh api --paginate "/repos/$GITHUB_REPOSITORY/actions/workflows/nightly.yml/runs?status=failure&per_page=100" --jq '.workflow_runs[] | select(.run_attempt == 1) | [.id, .created_at] | @tsv' |
|
||||||
while IFS=$'\t' read -r id updated; do
|
while IFS=$'\t' read -r id updated; do
|
||||||
when=$(date -u -d "$updated" +%s)
|
when=$(date -u -d "$updated" +%s)
|
||||||
if [ "$when" -ge "$min" ] && [ "$when" -le "$max" ]; then
|
if [ "$when" -ge "$min" ] && [ "$when" -le "$max" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user