From 03e711a1ee7bbe4b8e66a83279a9bdb12dd9f789 Mon Sep 17 00:00:00 2001 From: juewuy <61367819+juewuy@users.noreply.github.com> Date: Sat, 23 Mar 2024 15:25:49 +0800 Subject: [PATCH] Update core_auto_update.yml --- .github/workflows/core_auto_update.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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