Skip to content

https://github.com/SASE-Space/open-process-library   Open Process Library — Analyse C'est quoi ? Une bibliothèque open source (MIT) de blocs d'automatisation industrielle, compatible avec le standard #141

https://github.com/SASE-Space/open-process-library   Open Process Library — Analyse C'est quoi ? Une bibliothèque open source (MIT) de blocs d'automatisation industrielle, compatible avec le standard

https://github.com/SASE-Space/open-process-library   Open Process Library — Analyse C'est quoi ? Une bibliothèque open source (MIT) de blocs d'automatisation industrielle, compatible avec le standard #141

name: WF1 - Daily Ingest
on:
issues:
types: [opened, labeled] # ◄── ajout de "opened"
concurrency:
group: wf1-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
ingest:
if: |
(
(github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'veille'))
||
(github.event.action == 'labeled' && github.event.label.name == 'veille')
)
&&
(
github.event.issue.author_association == 'OWNER' ||
github.event.issue.author_association == 'COLLABORATOR' ||
github.event.issue.author_association == 'MEMBER'
)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
issues: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Process Input
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
run: python src/wf1_ingest.py
- name: Close Issue
run: |
gh issue close ${{ github.event.issue.number }} \
--comment "✅ Processed and archived"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}