Skip to content

feat(ci): call a publish workflow after a release - #50

Merged
dan-petty merged 2 commits into
mainfrom
feat/48-publish-call
Dec 1, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/48-publish-call

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A repository that publishes after a release must change the template's release.yml, so each copier update conflicts. Library part of design B of dan-petty/devops-cli#7980.

  • release.yml gets the output sha, the commit of the release.
  • The new answer release_publish_permissions renders a job that calls the repository's .github/workflows/publish.yml for a release, with tag-name, sha and no secret, also when the release job then fails.
  • A bad answer fails the render. A Copier validator silently drops a stored one.
  • The repository now owns release-please-config.json: template changes to it no longer arrive.
  • With no answer, a render does not change.

Risk: a missing publish.yml or too few permissions stop each run of release.yml. actionlint misses the second.

Existing tool: Copier, reusable workflows.

Proof: 232 of 232 template cases pass. Live runs 46550417537 and 46552127727 show the call and its reruns. Not proved: a release with the answer.

Closes #48
Change: openspec/changes/archive/2026-12-01-48-publish-call/

The reusable workflow release.yml gets the output sha, the commit of the
release. With the new answer release_publish_permissions, the release
caller of the template calls .github/workflows/publish.yml of the
repository for a release that the run reports, also when the release job
then fails, with the inputs tag-name and sha. The render fails for an
answer that it cannot render, so Copier cannot discard a stored answer.
release-please-config.json goes into _skip_if_exists.

Refs #48
@dan-petty dan-petty added type/feature Type feature: a new function scope/ci GitHub Actions workflows and pre-commit hooks labels Dec 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review December 1, 2026 01:27
@dan-petty
dan-petty merged commit dcd1602 into main Dec 1, 2026
15 checks passed
@dan-petty
dan-petty deleted the feat/48-publish-call branch December 1, 2026 01:30
dan-petty-release Bot added a commit that referenced this pull request Dec 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.5.0](v0.4.1...v0.5.0)
(2026-12-01)


### Features

* **ci:** call a publish workflow after a release
([#50](#50))
([dcd1602](dcd1602)),
closes [#48](#48)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows and pre-commit hooks type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ci): call a publish workflow after a release

1 participant