Skip to content

Commit 7adb33d

Browse files
committed
Ensure there are no duplicates when sending up required checks
This breaks the API. Also, fix the checks that had duplicate names.
1 parent 2e111b2 commit 7adb33d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/expected-queries-runs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616

1717
jobs:
1818
expected-queries:
19+
name: Expected Queries Tests
1920
timeout-minutes: 45
2021
runs-on: ubuntu-latest
2122
steps:

.github/workflows/query-filters.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
workflow_dispatch: {}
1616

1717
jobs:
18-
expected-queries:
18+
query-filters:
19+
name: Query Filters Tests
1920
timeout-minutes: 45
2021
runs-on: ubuntu-latest
2122
steps:

.github/workflows/script/update-required-checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
echo "Getting checks for $GITHUB_SHA"
2222

2323
# Ignore any checks with "https://", CodeQL, LGTM, and Update checks.
24-
CHECKS="$(gh api repos/github/codeql-action/commits/${GITHUB_SHA}/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs | .[].name | select(contains("https://") or . == "CodeQL" or . == "LGTM.com" or contains("Update") | not)] | sort')"
24+
CHECKS="$(gh api repos/github/codeql-action/commits/${GITHUB_SHA}/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs | .[].name | select(contains("https://") or . == "CodeQL" or . == "LGTM.com" or contains("Update") | not)] | unique | sort')"
2525

2626
echo "$CHECKS" | jq
2727

0 commit comments

Comments
 (0)