name: runner-smoke

on:
  workflow_dispatch: {}

jobs:
  smoke:
    if: ${{ github.server_url != 'https://codeberg.org' }}
    runs-on: namespace-profile-linux-medium
    steps:
      - name: Basic runner + secret smoke test
        env:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
        run: |
          set -euo pipefail
          echo "runner-ok"
          if [[ -n "${CLOUDFLARE_API_TOKEN:-}" ]]; then
            echo "secret-present"
          else
            echo "secret-missing"
            exit 2
          fi
