From cc86548fda61a35f15d14b295c6e248304d72d94 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Thu, 1 Oct 2026 15:19:19 -0700 Subject: [PATCH] ci: rename workflows to ci.yml and deploy.yml Match the naming used across labstack/echo repositories: the test and docs workflow is ci.yml, and both files use the .yml extension. References in the README and site/src/data/github.ts point at deploy.yml. The CI workflow now cancels superseded runs only for pull requests, so runs on master always finish, as in labstack/echo. Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq --- .github/workflows/{docs.yml => ci.yml} | 5 +++-- .github/workflows/{deploy.yaml => deploy.yml} | 0 README.md | 2 +- site/src/data/github.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename .github/workflows/{docs.yml => ci.yml} (84%) rename .github/workflows/{deploy.yaml => deploy.yml} (100%) 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;