Skip to content

hosts

hosts #2

Workflow file for this run

name: hosts
on:
schedule:
- cron: '0 21 * * 0'
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- run: npm ci
- run: npm run hosts
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src/hosts.svg
if ! git diff --staged --quiet; then
git commit -m "Обновляет историю ведущих"
git push
fi