Node.js CI #55919
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
# 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 '[email protected]' | |
git commit -am "Automated commit, updated cdn ranges" | |
git push |