-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (34 loc) · 924 Bytes
/
node.js.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
33
34
35
36
37
38
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