Skip to content

Update Services

Update Services #84

name: Update Services
on:
#schedule:
#- cron: '0 0 * * *' # Runs every day at midnight
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
update-services:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Run update script
run: node ua_scripts/updateServices.js
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated update: run updateServices.js" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}