Fetch GRTC #950
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
name: Fetch GRTC | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt install libgbm1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- name: GRTC | |
run: |- | |
cd scripts | |
npm install puppeteer | |
node grtc.js | |
env: | |
GRTC_USERNAME: ${{ secrets.GRTC_USERNAME }} | |
GRTC_PASSWORD: ${{ secrets.GRTC_PASSWORD }} | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "Automated Bot" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Latest version of GRTC" || exit 0 | |
git push |