Skip to content

Commit af2a33b

Browse files
chore(deps): update actions/github-script action to v9 (#2327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ded61ac commit af2a33b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: npm install
3232
- name: Get inputs markdown
3333
id: get_inputs_markdown
34-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
34+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3535
if: github.event_name != 'pull_request' || github.event.action != 'closed'
3636
env:
3737
HEAD_REF: ${{github.event.pull_request.head.ref || github.head_ref}}

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ runs:
7575
run: ${{ github.action_path }}/src/push.sh
7676
shell: bash
7777
- name: Get a number of PullRequests
78-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
78+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
7979
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')
8080
id: get_number_of_pull_requests
8181
with:
@@ -85,7 +85,7 @@ runs:
8585
return await script(github, context)
8686
# pushしたブランチで修正PRを作る
8787
- name: Create PullRequest
88-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
88+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
8989
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')
9090
id: create_pull_request
9191
with:
@@ -95,7 +95,7 @@ runs:
9595
return await script(github, context)
9696
# 元のPRを出したユーザーを修正PRにアサインする
9797
- name: Assign a user
98-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
98+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
9999
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'
100100
env:
101101
PR_NUMBER: ${{steps.create_pull_request.outputs.result}}
@@ -106,7 +106,7 @@ runs:
106106
await script(github, context)
107107
# 修正PRのタイトルやDescription、ラベルを更新する
108108
- name: Update PullRequest
109-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
109+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
110110
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')
111111
id: update_pull_request
112112
with:
@@ -116,7 +116,7 @@ runs:
116116
return await script(github, context)
117117
# 既に修正PRがある状態で、手動でformatを修正した場合、修正PRを閉じる
118118
- name: Close PullRequest
119-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
119+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
120120
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 == '')
121121
with:
122122
github-token: ${{inputs.github-token}}

0 commit comments

Comments
 (0)