Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/awesome-seo / .github/workflows/repo-health.yml |
| Date | Not specified in source |
| Repository | Janady13/awesome-seo |
| Revision | fc91f8980826547bb461b49f8a2f6efca33d7e6d |
| Branch | main |
| Path or archive member | .github/workflows/repo-health.yml |
| Original SHA-256 | 69ddc0a27049b08f9c432f1030a6f45dbc77df3e8551fdc4f9ee6c3614ba1fbb |
| Git blob SHA | f5f6e3253e1350b8a566f5ac6759014acaac17e5 |
| Reading-copy SHA-256 | 69ddc0a27049b08f9c432f1030a6f45dbc77df3e8551fdc4f9ee6c3614ba1fbb |
Recovered source transcript
Download complete source text ↓50 lines · 1.2 KB
name: Repo Health (Generic)
on:
workflow_dispatch:
pull_request:
push:
branches: ["main"]
permissions:
contents: read
jobs:
health:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Baseline hygiene checks
run: |
set -euo pipefail
warn() { echo "::warning::$*"; }
if [ ! -f "README.md" ] && [ ! -f "readme.md" ]; then
warn "Missing README.md"
fi
if [ ! -f "LICENSE" ] && [ ! -f "LICENSE.md" ]; then
warn "Missing LICENSE (recommended)"
fi
if [ ! -d ".github" ]; then
warn "Missing .github/ (recommended)"
fi
python3 - <<'PY'
import pathlib
bad = []
for p in pathlib.Path(".").rglob("*.md"):
if ".git" in p.parts:
continue
b = p.read_bytes() if p.exists() else b""
if b and not b.endswith(b"\n"):
bad.append(str(p))
if bad:
print("::warning::Markdown files missing trailing newline:")
for f in bad[:50]:
print("::warning:: - " + f)
PY