chore: Update `actions/github-script` to v6
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
48d78e345c
commit
a9d9d8d135
|
|
@ -27,9 +27,8 @@ jobs:
|
||||||
cargo run -- ../../src/ > ../../date-check-output.txt
|
cargo run -- ../../src/ > ../../date-check-output.txt
|
||||||
|
|
||||||
- name: Open issue
|
- name: Open issue
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
|
|
@ -37,7 +36,7 @@ jobs:
|
||||||
const title = rawText.split('\n')[0];
|
const title = rawText.split('\n')[0];
|
||||||
if (title != 'empty') {
|
if (title != 'empty') {
|
||||||
const body = rawText.split('\n').slice(1).join('\n');
|
const body = rawText.split('\n').slice(1).join('\n');
|
||||||
github.issues.create({
|
github.rest.issues.create({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
title,
|
title,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue