diff --git a/.github/workflows/core_auto_update.yml b/.github/workflows/core_auto_update.yml index 302097e..731d25d 100644 --- a/.github/workflows/core_auto_update.yml +++ b/.github/workflows/core_auto_update.yml @@ -10,9 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Auto update singbox_core_PuerNya to prerelease - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: script: | + const { Octokit } = require("@octokit/core"); + + const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }); + const { data: { id } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows', { owner: context.repo.owner, repo: context.repo.repo