Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Update Node.js modules in dev branch #414

Update Node.js modules in dev branch

Update Node.js modules in dev branch #414

name: Update Node.js modules in dev branch
on:
workflow_dispatch: null
schedule:
# UTC
- cron: "0 22 * * *"
jobs:
nodejs_modules_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: dev
- name: Install node modules
run: npm install
- name: Update Node.js modules
run: npm run update-modules
- name: Config git
run: |
git config user.name 'github-actions'
git config user.email 'github-actions@github.com'
- name: Commit and push
run: |
if ! (git diff-index --quiet HEAD ./package.json)
then
git add .
git commit -m 'Update Node.js modules'
git push
else
echo "Nothing to commit."
fi