summaryrefslogtreecommitdiff
path: root/.github/actions/check_cirrus_cron
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2022-01-24 15:12:38 -0500
committerChris Evich <cevich@redhat.com>2022-01-24 15:25:47 -0500
commit0d42d9f8d182a816849d2721c3161d152d6d5bea (patch)
tree3cc6a30c6d64744ed2b69ab3df3076fb76c3e877 /.github/actions/check_cirrus_cron
parentb75d6baf074a61f2119b8619c86bd2fae1cb2833 (diff)
downloadpodman-0d42d9f8d182a816849d2721c3161d152d6d5bea.tar.gz
podman-0d42d9f8d182a816849d2721c3161d152d6d5bea.tar.bz2
podman-0d42d9f8d182a816849d2721c3161d152d6d5bea.zip
Github workflow: Update Cirrus-cron GraphQL query
Sometime on Jan. 14th the GraphQL schema for Cirrus-CI changed, leading to the following error: `Validation error of type FieldUndefined: Field 'githubRepository' in type 'Root' is undefined @ 'githubRepository'` After some exploration, it was determined the field had been replaced with a new root-level field `ownerRepository`. Manual experimentation revealed the scalar value `LINUX` was appropriate to use for the new `platform` parameter. The query reply appears to remain compatible. Update the script which performs this query to use the new field name and parameter. ***NOTE*** This script is shared across multiple containers-org repos. All of which are/were affected by the schema change. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to '.github/actions/check_cirrus_cron')
-rwxr-xr-x.github/actions/check_cirrus_cron/cron_failures.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/actions/check_cirrus_cron/cron_failures.sh b/.github/actions/check_cirrus_cron/cron_failures.sh
index 16419c6d6..1d8f532d8 100755
--- a/.github/actions/check_cirrus_cron/cron_failures.sh
+++ b/.github/actions/check_cirrus_cron/cron_failures.sh
@@ -22,7 +22,7 @@ mkdir -p artifacts
cat > ./artifacts/query_raw.json << "EOF"
{"query":"
query CronNameStatus($owner: String!, $repo: String!) {
- githubRepository(owner: $owner, name: $repo) {
+ ownerRepository(platform: \"LINUX\", owner: $owner, name: $repo) {
cronSettings {
name
lastInvocationBuild {