Skip to content

Commit 3b98da0

Browse files
JohnTitorcamelid
authored andcommitted
chore: Update actions/github-script to v6
Signed-off-by: Yuki Okushi <[email protected]>
1 parent b145e1e commit 3b98da0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/date-check.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ jobs:
2727
cargo run -- ../../src/ > ../../date-check-output.txt
2828
2929
- name: Open issue
30-
uses: actions/github-script@v3
30+
uses: actions/github-script@v6
3131
with:
32-
github-token: ${{secrets.GITHUB_TOKEN}}
3332
script: |
3433
const fs = require('fs');
3534
3635
const rawText = fs.readFileSync('date-check-output.txt', { encoding: 'utf8' });
3736
const title = rawText.split('\n')[0];
3837
if (title != 'empty') {
3938
const body = rawText.split('\n').slice(1).join('\n');
40-
github.issues.create({
39+
github.rest.issues.create({
4140
owner: context.repo.owner,
4241
repo: context.repo.repo,
4342
title,

0 commit comments

Comments
 (0)