Skip to content

Commit 3b118ad

Browse files
committed
update basic_checks.yaml
1 parent 7da6ed8 commit 3b118ad

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.github/workflows/basic_checks.yaml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
r-build-and-check:
1010
runs-on: ubuntu-latest
1111
container: bioconductor/bioconductor_docker:devel
12+
1213
env:
13-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
14+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: TRUE
1415
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1516
CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest
17+
1618
steps:
1719
- name: Checkout Repository
1820
uses: actions/checkout@v3
@@ -51,9 +53,8 @@ jobs:
5153
- name: Check
5254
env:
5355
_R_CHECK_CRAN_INCOMING_REMOTE_: false
54-
run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "warning", check_dir = "check")
56+
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
5557
shell: Rscript {0}
56-
5758

5859
- name: Build pkgdown
5960
run: |
@@ -68,9 +69,10 @@ jobs:
6869
- name: Deploy 🚀
6970
uses: JamesIves/github-pages-deploy-action@v4
7071
with:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
7273
BRANCH: gh-pages # The branch the action should deploy to.
7374
FOLDER: docs # The folder the action should deploy.
75+
7476
docker-build-and-push:
7577
#needs: r-build-and-check
7678
runs-on: ubuntu-latest
@@ -82,9 +84,9 @@ jobs:
8284
id-token: write
8385

8486
steps:
85-
- name: Checkout repository
87+
- name: Checkout Repository
8688
uses: actions/checkout@v3
87-
89+
8890
- name: Set Environment Variables
8991
run: |
9092
REPO_LOWER="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
@@ -93,30 +95,25 @@ jobs:
9395
echo "GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
9496
echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV
9597
echo "IMAGE=${REGISTRY}/${REPO_LOWER}" >> $GITHUB_ENV
96-
98+
9799
- name: Show environment
98100
run: |
99101
env
100102
101-
102103
# Install the cosign tool except on PR
103104
# https://github.com/sigstore/cosign-installer
104105
- name: Install cosign
105106
if: github.event_name != 'pull_request'
106-
uses: sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
107-
with:
108-
cosign-release: 'v1.4.0'
109-
107+
uses: sigstore/cosign-installer@v3
110108

111-
# Workaround: https://github.com/docker/build-push-action/issues/461
112109
- name: Setup Docker buildx
113-
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
110+
uses: docker/setup-buildx-action@v3
114111

115112
# Login against a Docker registry except on PR
116113
# https://github.com/docker/login-action
117114
- name: Log into registry ${{ env.REGISTRY }}
118115
if: github.event_name != 'pull_request'
119-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
116+
uses: docker/login-action@v3
120117
with:
121118
registry: ${{ env.REGISTRY }}
122119
username: ${{ github.actor }}
@@ -126,19 +123,18 @@ jobs:
126123
# https://github.com/docker/metadata-action
127124
- name: Extract Docker metadata
128125
id: meta
129-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
126+
uses: docker/metadata-action@v5
130127
with:
131128
images: ${{ env.IMAGE }}
132129

133130
# Build and push Docker image with Buildx (don't push on PR)
134131
# https://github.com/docker/build-push-action
135132
- name: Build and push Docker image
136133
id: build-and-push
137-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
134+
uses: docker/build-push-action@v5
138135
with:
139136
context: .
140137
push: ${{ github.event_name != 'pull_request' }}
141138
tags: |
142139
${{ env.IMAGE }}:latest
143140
${{ env.IMAGE }}:${{ env.GIT_SHA }}
144-

0 commit comments

Comments
 (0)