[bot] Generate README.md based on .json files #10
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: 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" |