Skip to content

Commit 136b4d5

Browse files
committed
Update workflows
1 parent 55fd49a commit 136b4d5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/docker_pr_receive.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
env.aws-region != ''
206206
uses: aws-actions/configure-aws-credentials@v5.0.0
207207
with:
208-
role-to-assume: ${{ env.role-to-assumeN }}
208+
role-to-assume: ${{ env.role-to-assume }}
209209
aws-region: ${{ env.aws-region }}
210210
output-credentials: true
211211

.github/workflows/pr-comment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
run: |
6666
## Get list of changed files in the PR ##
67-
ONLY_VERSION=$(gh pr view 10 --json files --jq '
67+
ONLY_VERSION=$(gh pr view ${{ steps.get-pr.outputs.NUM }} --json files --jq '
6868
.files |
6969
length == 1 and
7070
.[0].path == ".github/workbench-docker-version.txt"

.github/workflows/update-cache.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
description: 'Who triggered this build?'
88
required: true
99
default: 'Maintainer (via GitHub)'
10-
skip-restore:
11-
description: 'Force lockfile update?'
10+
force-renv-init:
11+
description: 'Force full lockfile update?'
1212
required: false
1313
default: false
1414
type: boolean
@@ -27,9 +27,9 @@ on:
2727
- cron: '0 0 * * 2'
2828

2929
env:
30-
LOCKFILE_CACHE_GEN: ${{ github.event.inputs.generate-cache || 'false' }}
31-
SKIP_RENV_RESTORE: ${{ github.event.inputs.skip-restore || 'false' }}
32-
UPDATE_PACKAGES: ${{ github.event.inputs.update-packages || 'true' }}
30+
LOCKFILE_CACHE_GEN: ${{ vars.LOCKFILE_CACHE_GEN || github.event.inputs.generate-cache || 'false' }}
31+
FORCE_RENV_INIT: ${{ vars.FORCE_RENV_INIT || github.event.inputs.force-renv-init || 'false' }}
32+
UPDATE_PACKAGES: ${{ vars.UPDATE_PACKAGES || github.event.inputs.update-packages || 'true' }}
3333

3434
jobs:
3535
preflight:
@@ -100,10 +100,10 @@ jobs:
100100

101101
- name: "Update {renv} deps and determine if a PR is needed"
102102
id: update
103-
uses: carpentries/actions/update-lockfile@main
103+
uses: carpentries/actions/update-lockfile@frog-s3-test-1
104104
with:
105105
update: ${{ env.UPDATE_PACKAGES }}
106-
skip-restore: ${{ env.SKIP_RENV_RESTORE }}
106+
force-renv-init: ${{ env.FORCE_RENV_INIT }}
107107
generate-cache: ${{ env.LOCKFILE_CACHE_GEN }}
108108
cache-version: ${{ secrets.CACHE_VERSION }}
109109

@@ -207,7 +207,7 @@ jobs:
207207
- name: "Trigger checks"
208208
if: |
209209
steps.cpr.outputs.pull-request-number != '' &&
210-
steps.validate-token.outputs.wf != 'true'
210+
steps.validate-org-workflow.outputs.is_valid != 'true'
211211
run: |
212212
gh workflow run docker_pr_receive.yaml --field pr_number=${{ steps.cpr.outputs.pull-request-number }}
213213
shell: bash

0 commit comments

Comments
 (0)