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

Update material.json in dev branch #324

Update material.json in dev branch

Update material.json in dev branch #324

name: Update material.json in dev branch
on:
workflow_dispatch: null
schedule:
# UTC
- cron: "0 20 * * *"
jobs:
material_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: dev
- name: Install node modules
run: npm install
- name: Update material.json
run: npm run tool-material
- name: Config git
run: |
git config user.name 'github-actions'
git config user.email '[email protected]'
- name: Commit and push
run: |
if [[ -n $(git status --porcelain) ]]
then
git add .
git commit -m 'Update material.json'
git push
else
echo "Nothing to commit."
fi