We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
actions/github-script
1 parent b145e1e commit 3b98da0Copy full SHA for 3b98da0
.github/workflows/date-check.yml
@@ -27,17 +27,16 @@ jobs:
27
cargo run -- ../../src/ > ../../date-check-output.txt
28
29
- name: Open issue
30
- uses: actions/github-script@v3
+ uses: actions/github-script@v6
31
with:
32
- github-token: ${{secrets.GITHUB_TOKEN}}
33
script: |
34
const fs = require('fs');
35
36
const rawText = fs.readFileSync('date-check-output.txt', { encoding: 'utf8' });
37
const title = rawText.split('\n')[0];
38
if (title != 'empty') {
39
const body = rawText.split('\n').slice(1).join('\n');
40
- github.issues.create({
+ github.rest.issues.create({
41
owner: context.repo.owner,
42
repo: context.repo.repo,
43
title,
0 commit comments