aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/check_dependencies.yml
blob: 5f80c46f77908070ccc310bfea6122849a17d143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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) }}