Skip to content

generate-lists

generate-lists #6708

Workflow file for this run

name: generate-lists
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '59 4,10,16,22 * * *'
jobs:
build:
name: Build
runs-on: self-hosted
strategy:
matrix:
node-version: [18.x]
steps:
- name: Cleanup
run: rm -rf *
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm install
- name: Generate files
run: npm start
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Action Bot"
git config --local commit.gpgsign false
git commit -m "Updated List" --allow-empty -- files
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}