Skip to content

Node.js CI

Node.js CI #55934

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 * * * *'
jobs:
download:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: echo "$(date)" > output/.lastrun
- run: npm ci
- run: node download --output output/all-cdn.txt
- run: for f in providers/*.js; do FILENAME=${f%%.*}; FILENAME=${FILENAME##*/}; node download --provider ${FILENAME} --output output/${FILENAME}.txt; done;
- uses: actions/upload-artifact@v3
with:
path: output/
- run: |
git config --global user.name 'node.js Action'
git config --global user.email 'root@schniggie.de'
git commit -am "Automated commit, updated cdn ranges"
git push