Skip to content

Commit cd22f1c

Browse files
committed
1
1 parent 8bf80eb commit cd22f1c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/fetch_and_log.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ jobs:
2424
- name: Fetch Unprocessed Workflow Runs
2525
id: fetch-unprocessed-run-ids
2626
run: |
27-
HOURS=1
28-
# WORKFLOW_IDS=$(gh run list --repo $GITHUB_REPOSITORY --limit 100 --json databaseId,status,createdAt --jq '[.[] | select(.createdAt > (now - (1 * 3600))) | .databaseId] | @json')
29-
# LAST_RUN_ID=$(echo $WORKFLOW_IDS | jq '.[-1]')
30-
31-
WORKFLOW_IDS=$(gh run list --repo $GITHUB_REPOSITORY --limit 100 --json databaseId,createdAt --jq "[.[] | select(.databaseId > $LAST_PROCESSED_RUN_ID) | .databaseId] | @json")
27+
#WORKFLOW_IDS=$(gh run list --repo $GITHUB_REPOSITORY --limit 100 --json databaseId --jq "[.[] | select(.databaseId > $LAST_PROCESSED_RUN_ID and .displayTitle != \"Fetch and Log Workflow Runs\") | .databaseId] | @json")
28+
WORKFLOW_IDS=$(gh run list --repo $GITHUB_REPOSITORY --limit 100 --json databaseId,displayTitle --jq '[.[] | select(.displayTitle != "Fetch and Log Workflow Runs") | .databaseId] | @json'
3229
LAST_RUN_ID=$(echo $WORKFLOW_IDS | jq '.[-1]') # Store the highest run ID
33-
3430
3531
echo $WORKFLOW_IDS
3632
echo "LAST_RUN_ID=$LAST_RUN_ID" >> $GITHUB_ENV

0 commit comments

Comments
 (0)