File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ jobs:
18
18
token : ${{ secrets.PUSH_RELEASE_TRAINS_PAT }}
19
19
fetch-depth : 0
20
20
- name : Import public GPG keys to verify the tag
21
- uses : actions/github-script@v3
21
+ uses : actions/github-script@v7
22
22
with :
23
23
github-token : ${{secrets.GITHUB_TOKEN}}
24
24
script : |
25
25
const { execSync } = require('child_process')
26
26
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({
28
28
username: 'dscho'
29
29
})).data) {
30
30
execSync(`gpg ${raw_key ? '--import' : `--recv-keys ${key_id}`}`,
@@ -66,14 +66,14 @@ jobs:
66
66
git cat-file tag "$GITHUB_REF" | sed -e '1,/^$/d' -e '/-----BEGIN PGP SIGNATURE-----/,$d' >body
67
67
- name : Create Release
68
68
if : github.repository_owner == 'git-for-windows'
69
- uses : actions/github-script@v3
69
+ uses : actions/github-script@v7
70
70
with :
71
71
github-token : ${{secrets.GITHUB_TOKEN}}
72
72
script : |
73
73
const { readFileSync } = require('fs')
74
74
75
75
const tag_name = readFileSync('tag_name').toString()
76
- await github.repos.createRelease({
76
+ await github.rest. repos.createRelease({
77
77
owner: context.repo.owner,
78
78
repo: context.repo.repo,
79
79
tag_name: tag_name,
You can’t perform that action at this time.
0 commit comments