Skip to content

Cyberhebdo (DE)

Cyberhebdo (DE) #122

Workflow file for this run

name: Cyberhebdo (DE)
on:
schedule:
- cron: '0 8 * * 5'
workflow_dispatch:
# to consider: the use of action jobs to breakout each task
# https://docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions#sharing-data-between-jobs
jobs:
run-cyberhebdo_de:
runs-on: ubuntu-22.04
timeout-minutes: 170
environment: CI
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip3 install -r requirements.txt
pip3 install deepl
- name: Generate HTML Digest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API }}
DEEPL_API_KEY: ${{ secrets.DEEPL_API }}
run: |
python3 review-week-de.py cyberattacks.json
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ./cyberhebdo/
push_options: --force
- name: Save changes
run: |
DATE=$(date -Iseconds)
git config user.name github-actions
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git pull origin main
git commit --all --message "Updated by Crontab on $DATE" || echo "no changes to commit"
git push origin main