Skip to content

Commit faec274

Browse files
Bump actions/github-script from 2 to 6 (#934)
* Bump actions/github-script from 2 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 2 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](actions/github-script@v2...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update github-script action script * Update github-script action script Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anastasiia Smirnova <[email protected]>
1 parent 0e71d4e commit faec274

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
token: ${{ secrets.RELEASE_PERSONAL_ACCESS_TOKEN }}
1818

1919
- name: Validate ${{ github.event.inputs.version }} release exists
20-
uses: actions/github-script@v2
20+
uses: actions/github-script@v6
2121
with:
2222
github-token: ${{secrets.GITHUB_TOKEN}}
2323
script: |
24-
const response = await github.repos.listReleases({
24+
const response = await github.rest.repos.listReleases({
2525
owner: context.repo.owner,
2626
repo: context.repo.repo
2727
});
@@ -65,4 +65,4 @@ jobs:
6565
uses: test-room-7/action-publish-release-drafts@v0
6666
with:
6767
github-token: ${{ secrets.GITHUB_TOKEN }}
68-
tag-name: ${{ github.event.inputs.version }}
68+
tag-name: ${{ github.event.inputs.version }}

.github/workflows/validate_release_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- uses: actions/checkout@v3
1616

1717
- name: Validate ${{ github.event.inputs.version }} release exists
18-
uses: actions/github-script@v2
18+
uses: actions/github-script@v6
1919
with:
2020
github-token: ${{secrets.GITHUB_TOKEN}}
2121
script: |
22-
const response = await github.repos.listReleases({
22+
const response = await github.rest.repos.listReleases({
2323
owner: context.repo.owner,
2424
repo: context.repo.repo
2525
});
@@ -31,4 +31,4 @@ jobs:
3131
return
3232
}
3333
}
34-
throw new Error(`Release ${{ github.event.inputs.version }} is not available`);
34+
throw new Error(`Release ${{ github.event.inputs.version }} is not available`);

0 commit comments

Comments
 (0)