6363 run : ${{ github.action_path }}/src/push.sh
6464 shell : bash
6565 - name : Get a number of PullRequests
66- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
66+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0 .0
6767 if : steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
6868 id : get_number_of_pull_requests
6969 with :
7373 return await script(github, context)
7474 # pushしたブランチで修正PRを作る
7575 - name : Create PullRequest
76- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
76+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0 .0
7777 if : steps.diff.outputs.result != '' && steps.get_number_of_pull_requests.outputs.result == 0 && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
7878 id : create_pull_request
7979 with :
8383 return await script(github, context)
8484 # 元のPRを出したユーザーを修正PRにアサインする
8585 - name : Assign a user
86- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
86+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0 .0
8787 if : steps.diff.outputs.result != '' && steps.get_number_of_pull_requests.outputs.result == 0 && github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'Copilot'
8888 env :
8989 PR_NUMBER : ${{steps.create_pull_request.outputs.result}}
9494 await script(github, context)
9595 # 修正PRのタイトルやDescriptionを更新する
9696 - name : Update PullRequest
97- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
97+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0 .0
9898 if : steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
9999 id : update_pull_request
100100 with :
@@ -104,7 +104,7 @@ runs:
104104 return await script(github, context)
105105 # 既に修正PRがある状態で、手動でformatを修正した場合、修正PRを閉じる
106106 - name : Close PullRequest
107- uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1 .0
107+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0 .0
108108 if : (github.event_name == 'pull_request' && (github.event.action == 'closed' || steps.diff.outputs.result == '')) || ((github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch') && steps.diff.outputs.result == '')
109109 with :
110110 github-token : ${{inputs.github-token}}
0 commit comments