Skip to content

Update Node.js modules in source branch #662

Update Node.js modules in source branch

Update Node.js modules in source branch #662

Workflow file for this run

name: Update Node.js modules in source branch
on:
workflow_dispatch: null
schedule:
# UTC
- cron: "0 22 * * *"
jobs:
module_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: source
- name: Install Node.js modules
run: npm install
- name: Update Node.js modules
run: npm run ncu
- name: Config git
run: |
git config user.name 'github-actions'
git config user.email '[email protected]'
- 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