Actualizar README.md #591
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
name: Actualizar README.md | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */12 * * 0,2,4,6" | |
jobs: | |
Cancelacion: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancelar generaciones redundantes | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
Generar: | |
needs: [Cancelacion] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generar el README | |
uses: actions/checkout@v3 | |
- name: Configurar node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm install | |
- run: npm run update-readme | |
- run: | | |
git config user.name ninpl | |
git config user.email [email protected] | |
git add README.md | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Actualizar README.md con las novedades" | |
git push origin master |