Generar WordCloud Diario #64
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: 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 | |