aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-08-14 11:35:48 +0200
committerGitHub <noreply@github.com>2024-08-14 11:35:48 +0200
commit06894504573465b410758d0636238b3560bd7da8 (patch)
tree258bfdb9fbd1164a9bb9c4e17cb463bedc0cf346 /.github/workflows
parent67dd38b9d76eab01f0359b6c9d627618111be07f (diff)
downloadskyhanni-06894504573465b410758d0636238b3560bd7da8.tar.gz
skyhanni-06894504573465b410758d0636238b3560bd7da8.tar.bz2
skyhanni-06894504573465b410758d0636238b3560bd7da8.zip
Backend: Dependency Label Workflow (#2341)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/check_dependencies.yml26
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) }}