diff --git a/.github/workflows/docs.yml b/.github/workflows/ci.yml similarity index 84% rename from .github/workflows/docs.yml rename to .github/workflows/ci.yml index 5e446c05..69865cf4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,10 @@ on: permissions: contents: read +# Cancel superseded runs of the same pull request; runs on master always finish. concurrency: - group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: docs: diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yml similarity index 100% rename from .github/workflows/deploy.yaml rename to .github/workflows/deploy.yml diff --git a/README.md b/README.md index 7f2e8773..28f2eb46 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ go run . The site auto-deploys to GitHub Pages on every push to `master` (and once weekly, to refresh build-time data such as the GitHub star count) via -[`.github/workflows/deploy.yaml`](.github/workflows/deploy.yaml). Dependencies +[`.github/workflows/deploy.yml`](.github/workflows/deploy.yml). Dependencies are installed with `npm ci --ignore-scripts` and pinned via the committed lockfile. diff --git a/site/src/data/github.ts b/site/src/data/github.ts index de320a29..6e45229b 100644 --- a/site/src/data/github.ts +++ b/site/src/data/github.ts @@ -1,6 +1,6 @@ // Build-time GitHub stats. Fetched once during `astro build` and inlined into the // static HTML — no client JS, no runtime rate limits. The daily deploy cron -// (.github/workflows/deploy.yaml) re-runs the build so the number stays fresh. +// (.github/workflows/deploy.yml) re-runs the build so the number stays fresh. // Falls back gracefully so an offline / rate-limited build never fails. const REPO = 'labstack/echo'; const FALLBACK_STARS = 32400;