Skip to content

Commit b5dba01

Browse files
authored
Merge pull request #5852 from rjbou/gha2
gha: update checkout to v4
2 parents 87a88a5 + 2175f6e commit b5dba01

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/lib.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ let uses name ?id ?cond ?(continue_on_error=false) ?(withs=[]) action ~oc ~workf
240240
f ~oc ~workflow ~job
241241

242242
let checkout ?cond () =
243-
uses "Checkout tree" ?id:None ?cond "actions/checkout@v3"
243+
uses "Checkout tree" ?id:None ?cond "actions/checkout@v4"
244244

245245
let skip_step ~oc ~workflow ~job f = f ~oc ~workflow ~job
246246

.github/workflows/main.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
opam-bs-cache: ${{ steps.keys.outputs.opam-bs-cache }}
5353
steps:
5454
- name: Checkout tree
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v4
5656
- name: Determine cache keys
5757
id: keys
5858
run: |
@@ -92,7 +92,7 @@ jobs:
9292
force-gzip: true
9393
- name: Checkout tree
9494
if: steps.cygwin64.outputs.cache-hit != 'true'
95-
uses: actions/checkout@v3
95+
uses: actions/checkout@v4
9696
- name: Create Cygwin64 cache
9797
if: steps.cygwin64.outputs.cache-hit != 'true'
9898
shell: cmd
@@ -112,7 +112,7 @@ jobs:
112112
- name: Install bubblewrap
113113
run: sudo apt install bubblewrap
114114
- name: Checkout tree
115-
uses: actions/checkout@v3
115+
uses: actions/checkout@v4
116116
- name: src_ext/archives and opam-repository Cache
117117
id: archives
118118
uses: ocaml-opam/cache@opam
@@ -156,7 +156,7 @@ jobs:
156156
git config --system core.autocrlf false
157157
git config --system core.eol lf
158158
- name: Checkout tree
159-
uses: actions/checkout@v3
159+
uses: actions/checkout@v4
160160
- name: Cygwin64 Cache
161161
id: cygwin64
162162
if: matrix.build == 'x86_64-pc-cygwin'
@@ -230,7 +230,7 @@ jobs:
230230
fail-fast: true
231231
steps:
232232
- name: Checkout tree
233-
uses: actions/checkout@v3
233+
uses: actions/checkout@v4
234234
- name: src_ext/archives and opam-repository Cache
235235
id: archives
236236
uses: ocaml-opam/cache@opam
@@ -268,7 +268,7 @@ jobs:
268268
OPAM_TEST: 1
269269
steps:
270270
- name: Checkout tree
271-
uses: actions/checkout@v3
271+
uses: actions/checkout@v4
272272
- name: Install bubblewrap
273273
run: sudo apt install bubblewrap
274274
- name: src_ext/archives and opam-repository Cache
@@ -324,7 +324,7 @@ jobs:
324324
- name: Install gnu coreutils
325325
run: brew install coreutils
326326
- name: Checkout tree
327-
uses: actions/checkout@v3
327+
uses: actions/checkout@v4
328328
- name: src_ext/archives and opam-repository Cache
329329
id: archives
330330
uses: ocaml-opam/cache@opam
@@ -377,7 +377,7 @@ jobs:
377377
- name: Install bubblewrap
378378
run: sudo apt install bubblewrap
379379
- name: Checkout tree
380-
uses: actions/checkout@v3
380+
uses: actions/checkout@v4
381381
- name: src_ext/archives and opam-repository Cache
382382
id: archives
383383
uses: ocaml-opam/cache@opam
@@ -413,7 +413,7 @@ jobs:
413413
- name: Install bubblewrap
414414
run: sudo apt install bubblewrap
415415
- name: Checkout tree
416-
uses: actions/checkout@v3
416+
uses: actions/checkout@v4
417417
- name: src_ext/archives and opam-repository Cache
418418
id: archives
419419
uses: ocaml-opam/cache@opam
@@ -459,7 +459,7 @@ jobs:
459459
OPAMBSROOT: ~/.cache/opam.${{ matrix.solver }}.cached
460460
steps:
461461
- name: Checkout tree
462-
uses: actions/checkout@v3
462+
uses: actions/checkout@v4
463463
- name: src_ext/archives and opam-repository Cache
464464
id: archives
465465
uses: ocaml-opam/cache@opam
@@ -506,7 +506,7 @@ jobs:
506506
- name: Install bubblewrap
507507
run: sudo apt install bubblewrap
508508
- name: Checkout tree
509-
uses: actions/checkout@v3
509+
uses: actions/checkout@v4
510510
- name: opam 1.2 root Cache
511511
uses: actions/cache@v3
512512
with:
@@ -537,7 +537,7 @@ jobs:
537537
fail-fast: false
538538
steps:
539539
- name: Checkout tree
540-
uses: actions/checkout@v3
540+
uses: actions/checkout@v4
541541
- name: opam 1.2 root Cache
542542
uses: actions/cache@v3
543543
with:
@@ -569,7 +569,7 @@ jobs:
569569
- name: Install system's dune and ocaml packages
570570
run: sudo apt install dune ocaml
571571
- name: Checkout tree
572-
uses: actions/checkout@v3
572+
uses: actions/checkout@v4
573573
- name: src_ext/archives and opam-repository Cache
574574
id: archives
575575
uses: ocaml-opam/cache@opam

master_changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ users)
119119
### Engine
120120

121121
## Github Actions
122+
* Update checkout action to v4 [#5851 @rjbou]
122123

123124
## Doc
124125
* Fix a typo in the documentation of `opam lint --recursive` [#5812 @Khady]

0 commit comments

Comments
 (0)