Skip to content

Commit 936dcdf

Browse files
actions/github-scriptアップデート (#2079)
* Update actions/github-script action to v8 * scriptの宣言方法修正 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent f085aa5 commit 936dcdf

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
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@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
34+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.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}}
@@ -40,7 +40,7 @@ jobs:
4040
result-encoding: string
4141
script: |
4242
const {tsImport} = require('tsx/esm/api')
43-
const {script} = await tsImport(
43+
const {default: {script}} = await tsImport(
4444
'./scripts/format/format/get_inputs_markdown.ts',
4545
process.env.GITHUB_WORKSPACE + '/'
4646
)

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ runs:
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:
@@ -73,7 +73,7 @@ runs:
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:
@@ -83,7 +83,7 @@ runs:
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}}
@@ -94,7 +94,7 @@ runs:
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

Comments
 (0)