Skip to content

ci: release-please dates CITATION.cff itself; drop the sed step - #60

Merged
Paullo9 merged 1 commit into
mainfrom
issue-92-citation-date
Oct 31, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
issue-92-citation-date

Conversation

@Paullo9

@Paullo9 Paullo9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul · project thread

#35 added a workflow step that clones the Release PR branch, rewrites date-released with sed and pushes a second commit, because release-please was thought to have no date updater. It has one.

  • CITATION.cff: the date-released line carries # x-release-please-date.
  • .github/workflows/release-please.yml: the "Date CITATION.cff on the Release PR" step is removed.

release-please's generic updater, which handles CITATION.cff as an extra-files entry, has an inline date scope since 16.17.0 (googleapis/release-please#2440, "feat: allow date updating in generic strategy"). From its source, src/updaters/generic.ts: "x-release-please-date if this string is found on the line, then replace the date with the date of the last commit". In the code it replaces the first YYYY-MM-DD on the line with the date of the run. release-please-action@v4 depends on release-please ^17.3.0, so it has the updater. The date is now written in the Release PR commit itself, next to the version, with no extra commit or push; this is the same setup every kit now uses.

Tests: the workflow and CITATION.cff parse as YAML (Ruby Psych) with the same values; a Python emulation of the generic updater rewrites only the annotated date line (and the existing version line). The open Release PR still has the old step's commit; release-please rebuilds that branch on its next run.

🤖 Generated with Claude Code

release-please has a date updater after all: the generic updater
(release-please 16.17 and later, bundled in release-please-action v4)
replaces the YYYY-MM-DD on a line marked `x-release-please-date` with the
day of the run. The date-released line in CITATION.cff now carries that
annotation, so the date is written in the same Release PR commit as the
version, and the workflow step that cloned the Release PR branch, ran sed
and pushed a second commit is removed.

Done: date-released follows each Release PR without the extra step. Next: check the date line in the next Release PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 self-assigned this Oct 31, 2026
@Paullo9
Paullo9 merged commit 8abadf8 into main Oct 31, 2026
6 checks passed
@Paullo9
Paullo9 deleted the issue-92-citation-date branch October 31, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant