From ffe31d5fe94eca7ae24c35b56d7709b8849b196a Mon Sep 17 00:00:00 2001 From: CodeAndCanvas728 Date: Wed, 17 Jun 2026 16:54:38 +0200 Subject: [PATCH] Add LinkedIn automation workflow for weekly drafts --- .github/workflows/linkedin_automation.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/linkedin_automation.yml diff --git a/.github/workflows/linkedin_automation.yml b/.github/workflows/linkedin_automation.yml new file mode 100644 index 0000000..ac3a723 --- /dev/null +++ b/.github/workflows/linkedin_automation.yml @@ -0,0 +1,33 @@ +name: Weekly LinkedIn Draft Generator + +on: + schedule: + # Trigger every Wednesday at 07:00 UTC (9:00 AM Amsterdam Time) + - cron: '0 7 * * 3' + workflow_dispatch: # Allows you to click "Run workflow" to test it instantly + +jobs: + build-and-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install Libraries + run: pip install requests beautifulsoup4 fpdf + + - name: Run Editorial Assembler + run: python generate_post.py + + - name: Commit Drafts to Repository + run: | + git config --global user.name "Code & Canvas Automation" + git config --global user.email "studio@codeandcanvas.com" + git add _drafts/* + git diff-index --quiet HEAD || git commit -m "automation: generate weekly linkedin draft and pdf asset" + git push