File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 18
18
runs-on : ${{ matrix.os }}
19
19
steps :
20
20
- name : Checkout code
21
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v4
22
22
23
23
- name : Use OCaml ${{ matrix.ocaml-compiler }}
24
24
uses : ocaml/setup-ocaml@v2
38
38
runs-on : ubuntu-latest
39
39
steps :
40
40
- name : Checkout code
41
- uses : actions/checkout@v3
41
+ uses : actions/checkout@v4
42
42
43
43
- name : Use OCaml 4.14.x
44
44
uses : ocaml/setup-ocaml@v2
57
57
with :
58
58
name : html-docs
59
59
path : _build/default/_doc/_html/
60
+
61
+ check-changes :
62
+ runs-on : ubuntu-latest
63
+ if : github.event_name == 'pull_request'
64
+ steps :
65
+ - name : Checkout code
66
+ uses : actions/checkout@v4
67
+ with :
68
+ fetch-depth : 0
69
+
70
+ - name : Determine if CHANGES changed
71
+ id : changes-changed
72
+ uses : tj-actions/changed-files@v39
73
+ with :
74
+ files_yaml : |
75
+ changes:
76
+ - 'CHANGES'
77
+
78
+ - name : Fail if CHANGES did not change
79
+ if : steps.changes-changed.outputs.changes_any_changed == 'false'
80
+ run : |
81
+ echo "No changes made to the CHANGES file."
82
+ echo "Please update the file with your changes."
83
+ exit 1
Original file line number Diff line number Diff line change 1
1
1.0.0
2
2
========
3
3
- #1: initial implementation
4
+ - #2: add GitHub Actions-based CI
5
+ - #3: check if CHANGES file was edited in CI
You can’t perform that action at this time.
0 commit comments