.github/workflows/self-update.yml #19933
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |