Check live websites #673
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
# Workflow para generar el badge de que sitios siguen vivos | |
--- | |
name: Check live websites | |
on: | |
push: | |
branches: [main] | |
schedule: | |
# every day at 01:00 | |
- cron: "0 1 * * *" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: install deps | |
run: (cd .github/actions && npm i --only=prod) | |
- name: check sites | |
run: (cd .github/actions && npm run site-check) | |
- name: Deploy to reachable-sites branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./_badges | |
publish_branch: reachable-sites | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
user_name: "github-actions[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" |