[update GitHub release yaml] switch to modern actions version (#9413)

This commit is contained in:
Mikhail Koliada
2024-02-26 13:18:09 +01:00
committed by GitHub
parent 0a6a7e0869
commit 208aa68b10
+4 -4
View File
@@ -10,19 +10,19 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Update release for ${{ github.event.client_payload.ReleaseBranchName }} - name: Update release for ${{ github.event.client_payload.ReleaseBranchName }}
uses: actions/github-script@v2 uses: actions/github-script@v7
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
const response = await github.repos.getReleaseByTag({ const response = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
tag: "${{ github.event.client_payload.ReleaseBranchName }}" tag: "${{ github.event.client_payload.ReleaseBranchName }}"
}); });
github.repos.updateRelease({ github.rest.repos.updateRelease({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
release_id: response.data.id, release_id: response.data.id,