Skip to content

ci: every content push starts two Pages deploys and cancels the first #215

Description

@TMHSDigital

What

Every content push to main starts two Pages deploys, and the first is almost always cancelled:

  1. push to main matches pages.yml's paths: filter and starts a deploy.
  2. release.yml bumps the version ([skip ci] commit), then runs gh workflow run pages.yml --ref main (release.yml:183-187).
  3. concurrency: { group: pages, cancel-in-progress: true } cancels run 1 in favour of run 2.

Of the last 20 pages.yml runs: 8 push runs cancelled, 1 push run succeeded, 11 workflow_dispatch runs succeeded.

The site ends up correct, with the version bump included, so this is waste, not breakage: one runner job per release cancelled partway through the build.

Options

  • Keep the push trigger only for pushes that will not produce a release (docs: / chore: subjects). That is awkward to express in paths:.
  • Drop the push trigger and rely on the release dispatch plus manual workflow_dispatch. Risk: a non-release content push would not deploy.
  • Accept it and document why the cancelled runs are expected.

Low priority. Found during the Pages review in #208.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cigithub_actionsPull requests that update GitHub Actions code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions