dl.emersa.it/.forgejo/workflows/dependency_check.yaml
0d0 7c9b80917f
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 17s
lol
2025-02-23 02:11:40 +01:00

33 lines
937 B
YAML

name: Bump deps (only minor versions)
on:
schedule:
- cron: '12 1 * * *' # Runs every night at midnight (UTC)
workflow_dispatch:
jobs:
update-dependencies:
runs-on: docker
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.FORGEJO_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Update deps, install them (to change package-lock.json) and commit
run: |
npx npm-check-updates --target minor -u
npm ci
git config --global user.name "forgejo-bot"
git config --global user.email "bot@pweapon.org"
git add package.json || exit 0
git commit -m "chore: update minor dependencies"
git push origin HEAD:${GITHUB_REF#refs/heads/}
env:
GITHUB_TOKEN: ${{ secrets.FORGEJO_TOKEN }}