Skip to content

Mastodon Autoposter #266

Mastodon Autoposter

Mastodon Autoposter #266

Workflow file for this run

name: Mastodon Autoposter
on:
workflow_dispatch:
schedule:
- cron: "59 2,14 * * *"
jobs:
mastoposter:
runs-on: ubuntu-latest
steps:
- name: Checkout the Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies
run: pip install Mastodon.py titlecase pyyaml python-frontmatter tweepy
- name: Run Mastoposter
shell: bash
run: |
cd scripts
MASTODON_TOKEN="${{ secrets.MASTODON_TOKEN }}" X_CONSUMER_KEY="${{ secrets.X_CONSUMER_KEY }}" X_CONSUMER_SECRET="${{ secrets.X_CONSUMER_SECRET }}" X_ACCESS_TOKEN="${{ secrets.X_ACCESS_TOKEN }}" X_ACCESS_TOKEN_SECRET="${{ secrets.X_ACCESS_TOKEN_SECRET }}" python mastoposter.py