Skip to content

Mastodon Autoposter

Mastodon Autoposter #1

Workflow file for this run

name: Mastodon Autoposter
on:
workflow_dispatch:
schedule:
- cron: "0 8,20 * * *"
jobs:
mastoposter:
runs-on: ubuntu-latest
steps:
- name: Checkout the Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
- run: pip install Mastodon.py titlecase pyyaml python-frontmatter
- name: Run Mastoposter
shell: bash
run: |
cd scripts
MASTODON_TOKEN="${{ secrets.MASTODON_TOKEN }}" python mastoposter.py