Skip to content

CI run

The latest GitHub Actions run of a repo, job by job. Checks from your Mac with the GitHub CLI; for your iPhone too, turn on "Show on my other devices" there, then Sync to My Devices.

by MArk · Version 1 · Updated 13 hours ago

Price
Free
Works on
Mac · iPhone (as a card)
Permissions
5

What it does

  • Lives where you glance

    Menu bar, TailApps Dock, Dashboard, a floating window, and a card on your iPhone.

  • Talks to your other devices

    Turn on Sync to My Devices and its messages travel end-to-end encrypted.

  • Stays up to date

    Runs its script latest-run.sh on your Mac every 30 seconds

  • Stays up to date

    Updates when something is sent to its inbox run

  • Asks you to set up

    Repository (owner/name), Show on my other devices

What it may do

TailApps shows this list before installing and asks you once. The card can do nothing else.

  • Run its script latest-run.sh

    script:latest-run.sh

  • Use your GitHub CLI sign-in (gh)

    uses:gh

  • Open links

    open:url

  • Receive events sent to its inbox run (from your hooks, webhooks or other devices)

    inbox:run

  • Send to its copies on your other devices (when you turn on Sync to My Devices)

    send:run

Scripts

Everything it runs is here to read before you install.

latest-run.sh
#!/bin/sh
# The latest GitHub Actions run of repo $1 (owner/name) with its jobs, as JSON. Needs the GitHub CLI, signed in.
# The run gets a state (running, passed, failed or cancelled), and each job one the steps part reads:
# done, failed, skipped, active or pending. The app passes -- first, so a repo name is never read as a flag.
[ "$1" = "--" ] && shift
run=$(gh run list --repo "$1" --limit 1 --json databaseId --jq '.[0].databaseId') || exit 1
if [ -z "$run" ]; then
  echo '{"jobs":[]}'
  exit 0
fi
gh run view "$run" --repo "$1" --json displayTitle,headBranch,status,conclusion,url,createdAt,jobs --jq '{
  title: .displayTitle, branch: .headBranch, url, created: .createdAt,
  state: (if .status != "completed" then "running"
    elif .conclusion == "success" then "passed"
    elif .conclusion == "cancelled" or .conclusion == "skipped" then "cancelled"
    else "failed" end),
  jobs: [.jobs[] | {name, url, started: .startedAt, state: (
    if .conclusion == "success" then "done"
    elif .conclusion == "failure" or .conclusion == "timed_out" then "failed"
    elif .conclusion == "skipped" or .conclusion == "cancelled" then "skipped"
    elif .status == "in_progress" then "active"
    else "pending" end)}]
}'