Skip to content

Commit

Permalink
fix(CI): github scripts get token error
Browse files Browse the repository at this point in the history
fix by add global fetch
  • Loading branch information
hudeng-go committed Jul 12, 2023
1 parent 68de0ff commit f026e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-create-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
uses: actions/github-script@v6
with:
script: |
global["fetch"] = fetch
const { Octokit } = require("@octokit/rest");
const { createAppAuth } = require("@octokit/auth-app");
const appOctokit = new Octokit({
Expand Down

0 comments on commit f026e6e

Please sign in to comment.