Skip to content

Update JavaScript modules in dev branch #469

Update JavaScript modules in dev branch

Update JavaScript modules in dev branch #469

name: Update JavaScript modules in dev branch
on:
workflow_dispatch: null
schedule:
# UTC
- cron: "0 21 * * *"
jobs:
js_modules_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: dev
- name: Update JavaScript modules
run: ./data/js/update.sh
- 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 JavaScript modules'
git push
else
echo "Nothing to commit."
fi