Skip to content

Check live websites #677

Check live websites

Check live websites #677

Workflow file for this run

# 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"