File tree 3 files changed +36
-0
lines changed
3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 16
16
uses : golangci/golangci-lint-action@v2
17
17
- name : Check license
18
18
run : DOCKER_BUILDKIT=1 make check-license
19
+ - name : Check schema
20
+ run : make check-schema
19
21
20
22
test :
21
23
strategy :
Original file line number Diff line number Diff line change
1
+ name : Sync compose-spec
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : " 0 0 * * *"
7
+
8
+ jobs :
9
+ schema :
10
+ name : Update Schema
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout
15
+
16
+
17
+ - name : Download schema
18
+ run : curl -fSL -o schema/compose-spec.json https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
19
+
20
+ - name : Show diff
21
+ run : git diff schema/compose-spec.json
22
+
23
+ - name : Create Pull Request
24
+ uses : peter-evans/create-pull-request@v4
25
+ with :
26
+ title : Update compose-spec.json
27
+ commit-message : Update compose-spec.json
28
+ signoff : true
29
+ branch : compose-spec
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ lint: build-validate-image
38
38
check-license : build-validate-image
39
39
docker run --rm $(IMAGE_PREFIX ) validate bash -c " ./scripts/validate/fileheader"
40
40
41
+ .PHONY : check-schema
42
+ check-schema :
43
+ curl -fSL -o schema/compose-spec.json https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
44
+ git diff --exit-code schema/compose-spec.json
45
+
41
46
.PHONY : setup
42
47
setup : # # Setup the precommit hook
43
48
@which pre-commit > /dev/null 2>&1 || (echo " pre-commit not installed see README." && false)
You can’t perform that action at this time.
0 commit comments