[update GitHub release yaml] switch to modern actions version (#9413)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user