Skip to content

.github/workflows/self-update.yml #19934

.github/workflows/self-update.yml

.github/workflows/self-update.yml #19934

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: 19 */1 * * *
jobs:
self-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: npm install
run: npm install
- name: Generate the searchResults
run: npm start
- name: Run updateLastRecordByIdMapping
run: npm run updateLastRecordByIdMapping
- name: Run updateQueueDaysInfoByAddress
run: npm run updateQueueDaysInfoByAddress
- name: Commit and push the update
run: |
git config user.name github-actions
git config user.email [email protected]
git commit -am "Self-update"
git fetch
git rebase origin/master
git push