parent
761129b6e8
commit
04d0e23e03
1 changed files with 36 additions and 0 deletions
36
.forgejo/workflows/dependency_check.yaml
Normal file
36
.forgejo/workflows/dependency_check.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Check for Minor Dependency Updates
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Runs every day at midnight (UTC)
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
|
||||
jobs:
|
||||
check-dependencies:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20' # Adjust the Node.js version as needed
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Check for Minor Updates
|
||||
run: npx npm-check-updates --target minor
|
||||
|
||||
- name: Save ncu Results
|
||||
run: |
|
||||
npx npm-check-updates --target minor > ncu-report.txt
|
||||
cat ncu-report.txt
|
||||
|
||||
- name: Upload Report as Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ncu-report
|
||||
path: ncu-report.txt
|
Loading…
Add table
Reference in a new issue