Skip to content

Commit 8ba4ab9

Browse files
committed
automate compose-spec schema updates
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 5c348e3 commit 8ba4ab9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sync.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
uses: actions/[email protected]
16+
17+
- name: Download schema
18+
run: wget --output-document=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

0 commit comments

Comments
 (0)