Skip to content

Update Workflows to Version v1.0.2 - #541

Merged
douglowe merged 1 commit into
mainfrom
update/workflows
Sep 3, 2026
Merged

Update Workflows to Version v1.0.2#541
douglowe merged 1 commit into
mainfrom
update/workflows

Conversation

@carpentries-bot

Copy link
Copy Markdown
Contributor

🤖 This is an automated build

Update Workflows from sandpaper version 1.0.1 -> v1.0.2

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

⚠️ WARNING ⚠️

This pull request contains a mix of workflow files and regular files. This could be malicious. No preview will be created.

regular files:

  • .github/workflows/README.md
  • .github/workflows/workflows-version.txt

workflow files:

  • .github/workflows/docker_apply_cache.yaml
  • .github/workflows/docker_build_deploy.yaml
  • .github/workflows/docker_pr_receive.yaml
  • .github/workflows/pr-comment.yaml
  • .github/workflows/pr-post-remove-branch.yaml
  • .github/workflows/pr-preflight.yaml
  • .github/workflows/update-cache.yaml
  • .github/workflows/update-workflows.yaml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new dependency-image pruning flow has configuration issues (missing defaulting for keep-count, likely insufficient token permissions, and a preflight gate that may prevent runs on merged PRs) that can break or silently disable intended maintenance behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the repository’s Carpentries Workbench GitHub Actions workflows to align with sandpaper workflows v1.0.2, primarily by switching workflow action references from @main to stable @v1 and updating the dependency-caching approach from “package caches” toward GHCR-published dependency images.

Changes:

  • Bump Carpentries workflow action usages across workflows from @main to @v1, and update the tracked workflows version to v1.0.2.
  • Update build workflows to consume a computed dependency-image-ref instead of always using ghcr.io/carpentries/workbench-docker.
  • Revise workflow documentation to reflect the “dependency image” approach and improve clarity/examples.
File summaries
File Description
.github/workflows/workflows-version.txt Updates recorded workflows version to v1.0.2.
.github/workflows/update-workflows.yaml Pins validation/update actions to @v1 and passes token into the update action.
.github/workflows/update-cache.yaml Pins renv-related actions to @v1 and clarifies the cron schedule comment.
.github/workflows/README.md Expands/updates docs for Workbench workflows and dependency images; fixes typos.
.github/workflows/pr-preflight.yaml Pins PR validation/comment actions to @v1.
.github/workflows/pr-post-remove-branch.yaml Pins artifact download and branch removal actions to @v1.
.github/workflows/pr-comment.yaml Pins artifact download, PR validation, and comment actions to @v1.
.github/workflows/docker_pr_receive.yaml Switches renv checks to @v1 and uses dependency-image-ref for container image.
.github/workflows/docker_build_deploy.yaml Uses dependency-image-ref, pins Carpentries actions to @v1, and updates “skip manage deps” logic.
.github/workflows/docker_apply_cache.yaml Reworks cache publication into GHCR dependency image build/push + optional pruning; pins actions to @v1.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@@ -42,171 +52,120 @@ jobs:
runs-on: ubuntu-latest
needs: preflight
if: needs.preflight.outputs.do-apply == 'true'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm almost certain this is incorrect. PRs merged and closed against main have the correct ref, e.g. https://github.com/froggleston/R-ecology-lesson/actions/runs/28957593021/job/85920558306?pr=30#step:2:2

Comment on lines +153 to +157
prune-dependency-images:
name: "Prune Dependency Images"
runs-on: ubuntu-latest
needs: check-renv
steps:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure I tested this and the caches are deleted, but I'll do some more testing!

owner-type: ${{ github.event.repository.owner.type }}
repository: ${{ github.event.repository.name }}
package-name: ${{ github.event.repository.name }}-deps
keep-count: ${{ github.event.inputs.prune-keep-count }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underlying composite action defaults keep-count to "1", so this is a no-op.

@douglowe douglowe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge this, as it is following the carpentries standard. There's some suggestions from GH copilot, which we should look at in depth if the build fails.

@douglowe
douglowe merged commit 5d987b5 into main Sep 3, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants