9
9
r-build-and-check :
10
10
runs-on : ubuntu-latest
11
11
container : bioconductor/bioconductor_docker:devel
12
+
12
13
env :
13
- R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
14
+ R_REMOTES_NO_ERRORS_FROM_WARNINGS : TRUE
14
15
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
16
+ CRAN : https://packagemanager.posit.co/cran/__linux__/jammy/latest
17
+
15
18
steps :
16
- - uses : actions/checkout@v2
19
+ - name : Checkout Repository
20
+ uses : actions/checkout@v3
17
21
18
22
- name : Query dependencies and update old packages
19
23
run : |
23
27
24
28
- name : Cache R packages
25
29
if : runner.os != 'Windows'
26
- uses : actions/cache@v1
30
+ uses : actions/cache@v3
27
31
with :
28
32
path : /usr/local/lib/R/site-library
29
33
key : ${{ env.cache-version }}-${{ runner.os }}-r-${{ hashFiles('.github/depends.Rds') }}
49
53
- name : Check
50
54
env :
51
55
_R_CHECK_CRAN_INCOMING_REMOTE_ : false
52
- 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")
53
57
shell : Rscript {0}
54
-
55
58
56
59
- name : Build pkgdown
57
60
run : |
@@ -64,11 +67,12 @@ jobs:
64
67
apt-get -y install rsync
65
68
66
69
- name : Deploy 🚀
67
- uses : JamesIves/github-pages-deploy-action@releases/ v4
70
+ uses : JamesIves/github-pages-deploy-action@v4
68
71
with :
69
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
73
BRANCH : gh-pages # The branch the action should deploy to.
71
74
FOLDER : docs # The folder the action should deploy.
75
+
72
76
docker-build-and-push :
73
77
# needs: r-build-and-check
74
78
runs-on : ubuntu-latest
80
84
id-token : write
81
85
82
86
steps :
83
- - name : Checkout repository
84
- uses : actions/checkout@v2
85
-
87
+ - name : Checkout Repository
88
+ uses : actions/checkout@v3
89
+
86
90
- name : Set Environment Variables
87
91
run : |
88
92
REPO_LOWER="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
@@ -91,30 +95,25 @@ jobs:
91
95
echo "GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
92
96
echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV
93
97
echo "IMAGE=${REGISTRY}/${REPO_LOWER}" >> $GITHUB_ENV
94
-
98
+
95
99
- name : Show environment
96
100
run : |
97
101
env
98
102
99
-
100
103
# Install the cosign tool except on PR
101
104
# https://github.com/sigstore/cosign-installer
102
105
- name : Install cosign
103
106
if : github.event_name != 'pull_request'
104
- uses : sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
105
- with :
106
- cosign-release : ' v1.4.0'
107
+ uses : sigstore/cosign-installer@v3
107
108
108
-
109
- # Workaround: https://github.com/docker/build-push-action/issues/461
110
109
- name : Setup Docker buildx
111
- uses : docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
110
+ uses : docker/setup-buildx-action@v3
112
111
113
112
# Login against a Docker registry except on PR
114
113
# https://github.com/docker/login-action
115
114
- name : Log into registry ${{ env.REGISTRY }}
116
115
if : github.event_name != 'pull_request'
117
- uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
116
+ uses : docker/login-action@v3
118
117
with :
119
118
registry : ${{ env.REGISTRY }}
120
119
username : ${{ github.actor }}
@@ -124,19 +123,18 @@ jobs:
124
123
# https://github.com/docker/metadata-action
125
124
- name : Extract Docker metadata
126
125
id : meta
127
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
126
+ uses : docker/metadata-action@v5
128
127
with :
129
128
images : ${{ env.IMAGE }}
130
129
131
130
# Build and push Docker image with Buildx (don't push on PR)
132
131
# https://github.com/docker/build-push-action
133
132
- name : Build and push Docker image
134
133
id : build-and-push
135
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
134
+ uses : docker/build-push-action@v5
136
135
with :
137
136
context : .
138
137
push : ${{ github.event_name != 'pull_request' }}
139
138
tags : |
140
139
${{ env.IMAGE }}:latest
141
140
${{ env.IMAGE }}:${{ env.GIT_SHA }}
142
-
0 commit comments