Skip to content

ci(citation): call the org reusable citation workflow - #370

Merged
eliotmcintire merged 2 commits into
developmentfrom
ci/citation-thin-caller
Sep 3, 2026
Merged

ci(citation): call the org reusable citation workflow#370
eliotmcintire merged 2 commits into
developmentfrom
ci/citation-thin-caller

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Replaces the hand-rolled Update CITATION.cff job with a thin caller. No overrides — every default in the template suits this package.

Overlaps #369, which also rewrites this file on development. Whichever merges second will need a rebase. This branch also drops the NLMR/fastshp post-install step: neither is a dependency of SpaDES (its Suggests are covr, knitr, rmarkdown, testthat), and the fastshp source build is what failed this workflow on 2026-08-29.

Why template this one

Four repos (reproducible, SpaDES, SpaDES.core, SpaDES.tools) carried near-identical copies of this job, and two things had gone per-repo that shouldn't have:

  • The install-spatial-deps pin. A hand-rolled caller names that action directly, so the four had drifted to @v0.1, @v0.2 and a raw SHA. Every tag v0.1v0.5 still adds the ubuntugis-unstable PPA (libgdal37), which is ABI-incompatible with the binaries in Posit's noble cache. The template reaches the action through setup-r-deps, so the pin is internal to PredictiveEcology/actions and moves once instead of in four PRs.
  • The privilege split. Generating CITATION.cff installs and runs third-party R code; committing it needs a write-scoped token. The template runs those as separate jobs — build with contents: read, commit with contents: write and nothing but git. Until now only SpaDES.tools did this.

Also dropped

  • master from the push trigger — this repo has no master branch.
  • the setup-pandoc step where present. cff_write() reads DESCRIPTION and inst/CITATION and writes YAML; nothing renders.

Behaviour

Unchanged. The template still runs with dependencies: "all", so cff_write(dependencies = TRUE) sees the same installed set and the generated references: list comes out the same.

Ordering

Blocked on PredictiveEcology/actions#35, which adds the template. This PR will fail until that merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_015ZoicL7829pkb5ZbS5Ciww

eliotmcintire and others added 2 commits September 3, 2026 13:29
Replaces the hand-rolled "Update CITATION.cff" job with a thin caller. No
overrides -- every default in the template suits this package.

Four repos carried near-identical copies of this job, and two things had gone
per-repo that should not have been:

- the install-spatial-deps pin, which had drifted across the four to @v0.1,
  @v0.2 and a raw SHA. Every tag v0.1-v0.5 still adds the ubuntugis-unstable
  PPA (libgdal37), ABI-incompatible with the binaries in Posit's noble cache.
  The template reaches the action through setup-r-deps, so the pin is internal
  to PredictiveEcology/actions and moves once.

- the privilege split: generating CITATION.cff installs and runs third-party R
  code, and committing it needs a write-scoped token. The template runs those
  as separate jobs. Until now only SpaDES.tools did.

Also drops `master` from the push trigger -- this repo has no master branch --
and the pandoc step, which nothing in this job uses.

Requires PredictiveEcology/actions#35.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ZoicL7829pkb5ZbS5Ciww
@eliotmcintire
eliotmcintire merged commit f3699b6 into development Sep 3, 2026
14 checks passed
@eliotmcintire
eliotmcintire deleted the ci/citation-thin-caller branch September 3, 2026 21:55
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