Skip to content

Commit 208aa68

Browse files
[update GitHub release yaml] switch to modern actions version (actions#9413)
1 parent 0a6a7e0 commit 208aa68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update_github_release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Update release for ${{ github.event.client_payload.ReleaseBranchName }}
16-
uses: actions/github-script@v2
16+
uses: actions/github-script@v7
1717
with:
1818
github-token: ${{secrets.GITHUB_TOKEN}}
1919
script: |
20-
const response = await github.repos.getReleaseByTag({
20+
const response = await github.rest.repos.getReleaseByTag({
2121
owner: context.repo.owner,
2222
repo: context.repo.repo,
2323
tag: "${{ github.event.client_payload.ReleaseBranchName }}"
2424
});
25-
github.repos.updateRelease({
25+
github.rest.repos.updateRelease({
2626
owner: context.repo.owner,
2727
repo: context.repo.repo,
2828
release_id: response.data.id,

0 commit comments

Comments
 (0)