Skip to content

Generar WordCloud Diario #77

Generar WordCloud Diario

Generar WordCloud Diario #77

Workflow file for this run

name: Generar WordCloud Diario
on:
schedule:
- cron: '3 3 * * *'
jobs:
generate_wordcloud:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout código
uses: actions/checkout@v2
- name: Configurar Git
run: |
git config --global user.email "gaspargomez2000@outlook.com"
git config --global user.name "ggomez0"
- name: Configurar Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Instalar dependencias
run: |
pip install beautifulsoup4 requests nltk wordcloud matplotlib
- name: Instalar nltk
run: |
python mynltk.py
- name: Ejecutar tarea de generación de WordCloud
run: |
python wordcloudgenerator.py
- name: Subir WordCloud generada
run: |
git checkout main
git add .
git commit -m "WordCloud generado diario"
git push origin main