Skip to content

Commit 07d1e27

Browse files
zkamvargithub-actions[bot]
authored andcommitted
[actions] update sandpaper workflow to version v1.0.4
1 parent 50f0784 commit 07d1e27

4 files changed

Lines changed: 44 additions & 5 deletions

File tree

‎.github/workflows/docker_build_deploy.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths-ignore:
99
- '.github/workflows/**.yaml'
1010
- '.github/workbench-docker-version.txt'
11+
- '.devcontainer'
1112
schedule:
1213
- cron: '0 0 * * 2'
1314
workflow_run:
@@ -37,7 +38,7 @@ on:
3738

3839
# only one build/deploy at a time
3940
concurrency:
40-
group: docker-build-deploy
41+
group: docker-build-deploy-${{ github.event_name }}
4142
cancel-in-progress: true
4243

4344
jobs:

‎.github/workflows/update-cache.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
update_cache:
7676
name: "Create Package Update Pull Request"
77-
runs-on: ubuntu-22.04
77+
runs-on: ubuntu-latest
7878
needs: check-renv
7979
permissions:
8080
contents: write
@@ -95,7 +95,7 @@ jobs:
9595
uses: r-lib/actions/setup-r@v2
9696
with:
9797
use-public-rspm: true
98-
install-r: false
98+
install-r: true
9999

100100
- name: "Update {renv} deps and determine if a PR is needed"
101101
id: update

‎.github/workflows/update-workflows.yaml‎

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,21 @@ on:
1818
description: 'Workflow files/file extensions to clean (no wildcards, enter "" for none)'
1919
required: false
2020
default: '.yaml'
21+
clean-devc:
22+
description: 'Clean devcontainer files'
23+
required: false
24+
default: true
25+
type: boolean
2126

2227
jobs:
2328
update_workflow:
2429
name: "Update Workflow"
2530
runs-on: ubuntu-latest
2631
permissions:
2732
contents: write
28-
pull-requests: write
2933
id-token: write
34+
packages: read
35+
pull-requests: write
3036
steps:
3137
- name: "Checkout Repository"
3238
uses: actions/checkout@v6
@@ -115,3 +121,35 @@ jobs:
115121
[1]: https://github.com/carpentries/create-pull-request/tree/main
116122
labels: "type: workflows"
117123
draft: false
124+
125+
- name: Update devcontainer
126+
id: update-devcontainer
127+
if: ${{ steps.validate-token.outputs.wf == 'true' }}
128+
uses: carpentries/actions/update-devcontainer@v1
129+
with:
130+
token: ${{ steps.set-pat.outputs.pat || secrets.SANDPAPER_WORKFLOW }}
131+
repo: ${{ github.repository }}
132+
clean: ${{ github.event.inputs.clean-devc || 'true' }}
133+
134+
- name: Create Devcontainer Pull Request
135+
id: cdpr
136+
if: |
137+
steps.update-devcontainer.outputs.repo-package-ref &&
138+
steps.validate-token.outputs.wf == 'true'
139+
uses: carpentries/create-pull-request@main
140+
with:
141+
token: ${{ steps.set-pat.outputs.pat || secrets.SANDPAPER_WORKFLOW }}
142+
delete-branch: true
143+
branch: "update/devcontainer"
144+
commit-message: "[actions] update devcontainer to version ${{ steps.update-devcontainer.outputs.repo-package-ref }}"
145+
title: "Update Devcontainer to Version ${{ steps.update-devcontainer.outputs.repo-package-ref }}"
146+
body: |
147+
:robot: This is an automated build
148+
149+
Set devcontainer spec to: ${{ steps.update-devcontainer.outputs.repo-package-ref }}
150+
151+
- Auto-generated by [create-pull-request][1] on ${{ steps.update-devcontainer.outputs.date }}
152+
153+
[1]: https://github.com/carpentries/create-pull-request/tree/main
154+
labels: "type: workflows"
155+
draft: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.3
1+
v1.0.4

0 commit comments

Comments
 (0)