Skip to content

Commit 44e6ddb

Browse files
authored
Merge pull request #776 from dscho/update-to-github-script@v7
Update to `actions/github-script@v7`
2 parents a667737 + 03f14ce commit 44e6ddb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
token: ${{ secrets.PUSH_RELEASE_TRAINS_PAT }}
1919
fetch-depth: 0
2020
- name: Import public GPG keys to verify the tag
21-
uses: actions/github-script@v3
21+
uses: actions/github-script@v7
2222
with:
2323
github-token: ${{secrets.GITHUB_TOKEN}}
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}`}`,
@@ -66,14 +66,14 @@ jobs:
6666
git cat-file tag "$GITHUB_REF" | sed -e '1,/^$/d' -e '/-----BEGIN PGP SIGNATURE-----/,$d' >body
6767
- name: Create Release
6868
if: github.repository_owner == 'git-for-windows'
69-
uses: actions/github-script@v3
69+
uses: actions/github-script@v7
7070
with:
7171
github-token: ${{secrets.GITHUB_TOKEN}}
7272
script: |
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)