Weekly automated Mastodon post for norden.social, ported from an Apple Shortcut.
- Calls
GET /api/v1/instance/activity - Picks the last completed week (
activity[1], with fallback toactivity[0]) - Reads
loginsandregistrations - Calls
GET /api/v1/custom_emojis - Picks one random emoji and uses its
shortcode - Calls
POST /api/v1/statuseswith form fieldstatus
Post format:
Letzte Woche waren wir X aktive Accounts und Y haben sich neu registriert. Unser Emoji der Woche ist "shortcode": :shortcode: #nordensocialstats
The GitHub Action is scheduled for Monday at 12:00 in Europe/Berlin using GitHub Actions timezone support.
- Push this repository to GitHub.
- Go to
Settings > Secrets and variables > Actions. - Add secret:
MASTODON_ACCESS_TOKEN= your Mastodon access token
- Workflow file:
.github/workflows/weekly-mastodon-post.yml
Use Actions > Weekly Mastodon Stats Post > Run workflow:
dry_run=trueto generate output without posting