Skip to content

Commit cbf3e59

Browse files
committed
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@v6`, but now is required. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 394c35a commit cbf3e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-tag.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
script: |
2525
const { execSync } = require('child_process')
2626
27-
for (const { key_id, raw_key } of (await github.users.listGpgKeysForUser({
27+
for (const { key_id, raw_key } of (await github.rest.users.listGpgKeysForUser({
2828
username: 'dscho'
2929
})).data) {
3030
execSync(`gpg ${raw_key ? '--import' : `--recv-keys ${key_id}`}`,
@@ -73,7 +73,7 @@ jobs:
7373
const { readFileSync } = require('fs')
7474
7575
const tag_name = readFileSync('tag_name').toString()
76-
await github.repos.createRelease({
76+
await github.rest.repos.createRelease({
7777
owner: context.repo.owner,
7878
repo: context.repo.repo,
7979
tag_name: tag_name,

0 commit comments

Comments
 (0)