Update Quotes #1526
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
# SPDX-FileCopyrightText: 2022 Leroy Hopson <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: "Update Quotes" | |
on: | |
push: | |
schedule: | |
- cron: 0 4,8,19 * * * | |
jobs: | |
check-reuse: | |
name: "Check REUSE Compliance" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: fsfe/reuse-action@v1 | |
scrape: | |
name: "Update Quotes" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- run: npm ci | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
packages: sqlite3 | |
- name: Scrape quotes | |
run: ./scrape.sh | |
env: | |
CYPRESS_KERNEL_USERNAME: ${{ secrets.CYPRESS_KERNEL_USERNAME }} | |
CYPRESS_KERNEL_PASSWORD: ${{ secrets.CYPRESS_KERNEL_PASSWORD }} | |
CYPRESS_SHARESIGHT_USERNAME: ${{ secrets.CYPRESS_SHARESIGHT_USERNAME }} | |
CYPRESS_SHARESIGHT_PASSWORD: ${{ secrets.CYPRESS_SHARESIGHT_PASSWORD }} | |
- name: Update quotes | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: quotes |