Skip to content

Commit

Permalink
fix: gh-actions with adding actions/github-script@v6
Browse files Browse the repository at this point in the history
  • Loading branch information
albertkun committed Aug 22, 2024
1 parent f1484a6 commit c72adb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/issues-weekly-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { github, context } = require('@actions/github');
const now = new Date();
const nextTuesday = new Date(now);
nextTuesday.setDate(now.getDate() + ((2 + 7 - now.getDay()) % 7));
Expand All @@ -31,7 +30,7 @@ jobs:
会議 ID: 429 235 468 444
パスコード: EZycz3`;
const issue = await github.issues.create({
const issue = await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: issueTitle,
Expand Down

0 comments on commit c72adb0

Please sign in to comment.