From fc8fbb6661a844498f1518ab1c43f0e870173265 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 15 Nov 2023 00:32:50 +0100 Subject: [PATCH] ci: newer Octokit requires the `.rest`. qualifier It is no longer enough to call `github.users.listGpgKeysForUser()`, it needs to specify the REST API mode (as opposed to GraphQL): `github.rest.users.listGpgKeysForUser()`. This was highly recommended before upgrading to `actions/github-script@v7`, but now is required. Signed-off-by: Johannes Schindelin --- .github/workflows/release-tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index d45faf24..4e5b10b9 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -24,7 +24,7 @@ jobs: script: | const { execSync } = require('child_process') - for (const { key_id, raw_key } of (await github.users.listGpgKeysForUser({ + for (const { key_id, raw_key } of (await github.rest.users.listGpgKeysForUser({ username: 'dscho' })).data) { execSync(`gpg ${raw_key ? '--import' : `--recv-keys ${key_id}`}`, @@ -73,7 +73,7 @@ jobs: const { readFileSync } = require('fs') const tag_name = readFileSync('tag_name').toString() - await github.repos.createRelease({ + await github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, tag_name: tag_name,