Generación ProgramadaAdd commentMore actions #129
This file contains hidden or 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: Generación ProgramadaAdd commentMore actions | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 1-5' # Ejecutar días hábiles a las 9AM | |
| workflow_dispatch: | |
| jobs: | |
| generate-templates: | |
| runs-on: ubuntu-latest | |
| env: | |
| ENVIRONMENT: production | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Configura AWS CLI | |
| uses: aws-actions/configure-aws-credentials@v2 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
| aws-region: us-east-1 | |
| - run: | | |
| pip install -r herramientas/requirements.txt | |
| python herramientas/generador.py --all | |
| aws s3 sync ./salida s3://mechbot-templates-$ENVIRONMENT | |
| aws-region: us-east-1 | |
| - run: | | |
| pip install -r herramientas/requirements.txt | |
| python herramientas/generador.py --all | |
| aws s3 sync ./salida s3://mechbot-templates-$ENVIRONMENT |