File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 });
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 }}
Original file line number Diff line number Diff 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 });
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`);
You can’t perform that action at this time.
0 commit comments