Skip to content

Commit 5c037a4

Browse files
authored
Merge pull request #209 from LibraryCarpentry/update/workflows
Update Workflows to Version v1.0.3
2 parents 7911916 + ae34d99 commit 5c037a4

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

‎.github/workflows/README.md‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,17 @@ Repository-level variables for this workflow are:
196196
- Force a reset of previously build markdown files
197197
- Setting this variable value to `true` will force sandpaper to delete any previously build markdown files
198198
- Default is unset or `false`
199+
- OMIT_PR_CONTAINER_VERSION_UPDATE
200+
- Control raise behaviour of the workbench-docker version update PR
201+
- When a new workbench Docker image version is detected, usually after a sandpaper, varnish, or pegboard update, its version number will be incremented
202+
- If a newer version is available, a PR will be raised that updates the `.github/workbench-docker-version.txt` file
203+
- To not raise this PR set this to `true`
204+
- Default is unset or `false`
199205
- AUTO_MERGE_WORKBENCH_VERSION_UPDATE
200206
- Control merge behaviour of the workbench-docker version update PR
201-
- When a new workbench Docker image version is detected, usually after a sandpaper, varnish, or pegboard update, its version number will be incremented
202-
- If a newer version is available, a PR will be auto-generated that updates the `.github/workbench-docker-version.txt` file, and this PR will be auto-merged
203-
- To not auto-merge this PR and to choose when to update the Docker version used, set this to `false`.
204-
- Default is unset or `true`
207+
- If OMIT_PR_CONTAINER_VERSION_UPDATE is `true` this option does nothing
208+
- To auto-merge this PR, set this to `true`
209+
- Default is unset or `false`
205210
- LANG_CODE
206211
- Two-letter language code that triggers the use of Joel Nitta's {dovetail} package for lesson translation
207212
- This is used in the internationalisation repos of the main Carpentry lesson programs

‎.github/workflows/docker_apply_cache.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ jobs:
154154
name: "Prune Dependency Images"
155155
runs-on: ubuntu-latest
156156
needs: check-renv
157+
permissions:
158+
contents: read
159+
packages: write
157160
steps:
158161
- name: Prune any old dependency image layers
159162
uses: carpentries/actions/prune-dependency-images@v1

‎.github/workflows/docker_build_deploy.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
RENV_PATHS_ROOT: /home/rstudio/lesson/renv
9696
RENV_PROFILE: "lesson-requirements"
9797
RENV_CONFIG_EXTERNAL_LIBRARIES: "/usr/local/lib/R/site-library"
98+
WORKBENCH_OVERLAY_CUSTOMIZATION: ${{ vars.WORKBENCH_OVERLAY_CUSTOMIZATION || '' }}
9899
volumes:
99100
- ${{ github.workspace }}:/home/rstudio/lesson
100101
options: --cpus 1
@@ -144,7 +145,8 @@ jobs:
144145
uses: carpentries/actions/record-container-version@v1
145146
with:
146147
CONTAINER_VER: ${{ needs.preflight.outputs.wb-vers }}
147-
AUTO_MERGE: ${{ vars.AUTO_MERGE_CONTAINER_VERSION_UPDATE || 'true' }}
148+
OMIT_PR: ${{ vars.OMIT_PR_CONTAINER_VERSION_UPDATE || 'false' }}
149+
AUTO_MERGE: ${{ vars.AUTO_MERGE_CONTAINER_VERSION_UPDATE || 'false' }}
148150
token: ${{ secrets.GITHUB_TOKEN }}
149151
role-to-assume: ${{ secrets.AWS_GH_OIDC_ARN }}
150152
aws-region: ${{ secrets.AWS_GH_OIDC_REGION }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.2
1+
v1.0.3

0 commit comments

Comments
 (0)