forked from indi-es/estudios
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 925 Bytes
/
gen-readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Workflow para generar el badge de que sitios siguen vivos
---
name: Generate README.md based on json files
on:
push:
branches: [main]
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_TOKEN }}
- 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: Generate Readme
run: (cd .github/actions && npm run generate)
- name: Generate missing
run: (cd .github/actions && npm run generate-missing)
- name: Add and commit changes
uses: EndBug/add-and-commit@v7
with:
add: "README.md"
author_name: "Mario Carballo"
author_email: "[email protected]"
message: "[bot] Generate README.md based on .json files"