From 79f1697c005636f4503c616834f5781b51d1c02e Mon Sep 17 00:00:00 2001 From: Adam Amer <136176500+adamamer20@users.noreply.github.com> Date: Sat, 3 Feb 2024 10:17:43 +0100 Subject: [PATCH] fix check --- .github/workflows/issues-dependency-check.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issues-dependency-check.yml b/.github/workflows/issues-dependency-check.yml index 341f3e6..861fb95 100644 --- a/.github/workflows/issues-dependency-check.yml +++ b/.github/workflows/issues-dependency-check.yml @@ -11,7 +11,11 @@ jobs: - name: Check for unresolved dependencies uses: actions/github-script@v7 with: + github-token: ${{ secrets.GITHUB_TOKEN }} script: | + const core = require('@actions/core'); + const github = require('@actions/github'); + // Updated regex to match multiple issue numbers const issueRegex = /depends on #(\d+(?:\s+#\d+)*)/ig; @@ -52,6 +56,4 @@ jobs: } } - run().catch(error => core.setFailed(error.message)); - - + run().catch(error => core.setFailed(error.message)); \ No newline at end of file