Push To Display

GitHub Action

The pushtodisplay/action GitHub Action lets you send display updates directly from your CI/CD pipelines. Use it to push deploy notifications, test results, build status, or any other information to your boards.

Basic usage

- uses: pushtodisplay/action@v1
  with:
    api-key: ${{ secrets.PTD_API_KEY }}
    board-id: <your-board-id>
    text: "Deploy completed"

Setup

1. Store your API key as a secret

Go to your GitHub repository → Settings → Secrets and variables → Actions → New repository secret.

  • Name: PTD_API_KEY
  • Value: Your Push To Display API key

2. Add the action to your workflow

Create or edit a workflow file (e.g., .github/workflows/deploy.yml):

name: Deploy
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      # ... your deploy steps ...

      - uses: pushtodisplay/action@v1
        with:
          api-key: ${{ secrets.PTD_API_KEY }}
          board-id: <your-board-id>
          text: "Deploy completed"

Inputs

InputRequiredDescription
api-keyYesYour API key. Use a GitHub secret — never hardcode it.
board-idNoBoard ID. Uses your default board if omitted.
textNoSimple text content. Use this or blocks, not both.
blocksNoJSON array of styled blocks. Use this or text, not both.
panel-idNoTarget panel (1–4).
full-panelNoFill the entire panel area (true / false).
densityNoContent spacing: compact, standard, or spacious.
align-xNoHorizontal alignment: start, center, or end.
align-yNoVertical alignment: start, center, or end.
backgroundNoPanel background color in hex (#RRGGBB).

You must provide either text or blocks. If both are provided, blocks takes priority.

Outputs

OutputDescription
message-idThe unique message ID returned by the API.

Use the output in subsequent steps:

- uses: pushtodisplay/action@v1
  id: ptd
  with:
    api-key: ${{ secrets.PTD_API_KEY }}
    text: "Deploy started"

- run: echo "Message ID: ${{ steps.ptd.outputs.message-id }}"

Next

See Examples for real-world workflow recipes.