Agent Veille Tech #47
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: Agent Veille Tech | |
| on: | |
| schedule: | |
| - cron: '20 9 * * *' # 7h Maroc | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| veille: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout du code | |
| uses: actions/checkout@v4 | |
| - name: Installer Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Installer les dépendances | |
| run: pip install requests beautifulsoup4 groq python-dotenv | |
| - name: Lancer l'agent | |
| env: | |
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
| GMAIL_ADDRESS: ${{ secrets.GMAIL_ADDRESS }} | |
| GMAIL_APP_PASS: ${{ secrets.GMAIL_APP_PASS }} | |
| DESTINATAIRE: ${{ secrets.DESTINATAIRE }} | |
| run: python tech_veille/agent_veille.py |