Announce a GitHub release on every network at once
When you publish a release on GitHub, one workflow step can post it to every account you have connected to PostJr. This page has the workflow, a safe way to try it, and the same job done by an agent.
What you need
- A PostJr account with the accounts you want connected. PostJr publishes to X, Bluesky, Mastodon, LinkedIn, YouTube Shorts, Discord, Telegram, Slack.
- An API key from Settings, saved in your repository as the secret
POSTJR_API_KEY. - The ids of the accounts to post to, saved as the repository variable
POSTJR_CHANNEL_IDS. This lists them for Bluesky, Mastodon and Discord:
curl -sS https://app.postjr.com/v1/channels \
-H "authorization: Bearer $POSTJR_API_KEY" \
| jq -c '[.[] | select(.network == "bluesky" or .network == "mastodon" or .network == "discord") | .id]'
The workflow
Save this as .github/workflows/announce.yml. With no time given, PostJr publishes the post at once. The release name and address pass through environment variables, so a release title cannot change the command.
name: Announce release
on:
release:
types: [published]
jobs:
announce:
runs-on: ubuntu-latest
steps:
- name: Post to PostJr
env:
POSTJR_API_KEY: ${{ secrets.POSTJR_API_KEY }}
POSTJR_CHANNEL_IDS: ${{ vars.POSTJR_CHANNEL_IDS }}
RELEASE_NAME: ${{ github.event.release.name || github.event.release.tag_name }}
RELEASE_URL: ${{ github.event.release.html_url }}
run: |
body=$(jq -n \
--arg text "$RELEASE_NAME is out: $RELEASE_URL" \
--argjson channels "$POSTJR_CHANNEL_IDS" \
'{body: $text, schedule: {channelIds: $channels}}')
curl --fail-with-body -sS https://app.postjr.com/v1/posts \
-H "authorization: Bearer $POSTJR_API_KEY" \
-H "content-type: application/json" \
-d "$body"
Try it before it posts
Change schedule to {channelIds: $channels, at: "2026-12-01T09:00:00Z"} with a time a day away. The post then waits on your calendar, where you can read each network's version and cancel it. Post to a single account first.
To check a post without saving it, send the same body to POST /v1/posts/check. It answers each account's text, length, limit and problems. X counts any link as 23 characters, so a release name and an address fit its 280.
To make a retried call safe, add an id (an uppercase ULID) to the body. The same call with the same id returns the same post and makes no second one.
Or ask an agent
With PostJr connected to Claude or Codex, ask: Post the notes of my latest GitHub release to Bluesky, Mastodon and Discord, and tell me if any of them is over a limit.
The agent uses check_post first, then schedules the post. Setup is on the AI agents page; every endpoint is in the API reference.
$0 today. 7 days free, card required, then from $29 a month. Three plans, by how many accounts you connect.