aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/check_dependencies.yml
blob: 50f3641ae03c66046035d0448ffd8e74d55e9fd2 (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
27
28
29
name: Check PR Dependencies

on:
    pull_request_target:
        types: [ opened, edited ]
    push:
        branches:
            - beta

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) }}