diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/check_dependencies.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml new file mode 100644 index 000000000..5f80c46f7 --- /dev/null +++ b/.github/workflows/check_dependencies.yml @@ -0,0 +1,26 @@ +name: Check PR Dependencies + +on: + pull_request_target: + types: [ opened, edited ] + +jobs: + check-dependencies: + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install dependencies + run: npm install @octokit/rest node-fetch + + - name: Run dependency check script + run: node .github/scripts/checkDependencies.mjs + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_CONTEXT: ${{ toJson(github) }} |