Skip to content

Commit 3a74072

Browse files
authored
fix #571
1 parent 49950ae commit 3a74072

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/sync.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ jobs:
1919
# Retrieve json schema from td repository
2020
mkdir .temp && cd .temp
2121
git init
22-
git fetch https://github.com/w3c/wot-thing-description.git
23-
git checkout FETCH_HEAD -- validation/td-json-schema-validation.json
22+
git fetch https://github.com/w3c/wot-resources.git
23+
git checkout FETCH_HEAD -- td/v1.1/validation/td-json-schema-validation.json
2424
- name: Look for changes
2525
continue-on-error: true
2626
run: |
27-
git diff --no-index --quiet typescript/thing-description/schema/td-json-schema-validation.json .temp/validation/td-json-schema-validation.json
27+
git diff --no-index --quiet typescript/thing-description/schema/td-json-schema-validation.json .temp/td/v1.1/validation/td-json-schema-validation.json
2828
echo "::set-output name=changed::$?"
2929
id: diff
3030
- name: Sync file
3131
if: ${{ ! steps.diff.outputs.changed }}
32-
run: mv .temp/validation/td-json-schema-validation.json typescript/thing-description/schema/td-json-schema-validation.json && rm -rf .temp
32+
run: mv .temp/td/v1.1/validation/td-json-schema-validation.json typescript/thing-description/schema/td-json-schema-validation.json && rm -rf .temp
3333
- name: Generate types
3434
if: ${{ ! steps.diff.outputs.changed }}
3535
run: |
@@ -64,17 +64,17 @@ jobs:
6464
# Retrieve json schema from td repository
6565
mkdir .temp && cd .temp
6666
git init
67-
git fetch https://github.com/w3c/wot-thing-description.git
68-
git checkout FETCH_HEAD -- validation/tm-json-schema-validation.json
67+
git fetch https://github.com/w3c/wot-resources.git
68+
git checkout FETCH_HEAD -- td/v1.1/validation/tm-json-schema-validation.json
6969
- name: Look for changes
7070
continue-on-error: true
7171
run: |
72-
git diff --no-index --quiet typescript/thing-model/schema/tm-json-schema-validation.json .temp/validation/tm-json-schema-validation.json
72+
git diff --no-index --quiet typescript/thing-model/schema/tm-json-schema-validation.json .temp/td/v1.1/validation/tm-json-schema-validation.json
7373
echo "::set-output name=changed::$?"
7474
id: diff
7575
- name: Sync file
7676
if: ${{ ! steps.diff.outputs.changed }}
77-
run: mv .temp/validation/tm-json-schema-validation.json typescript/thing-model/schema/tm-json-schema-validation.json && rm -rf .temp
77+
run: mv .temp/td/v1.1/validation/tm-json-schema-validation.json typescript/thing-model/schema/tm-json-schema-validation.json && rm -rf .temp
7878
- name: Generate types
7979
if: ${{ ! steps.diff.outputs.changed }}
8080
run: |

0 commit comments

Comments
 (0)