diff --git a/.forgejo/workflows/dependency_check.yaml b/.forgejo/workflows/dependency_check.yaml new file mode 100644 index 0000000..357c677 --- /dev/null +++ b/.forgejo/workflows/dependency_check.yaml @@ -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