From b6c51d66f2b208ea122f489833f9a9f1956442e4 Mon Sep 17 00:00:00 2001 From: Kseniya Shychko Date: Fri, 31 May 2024 10:43:37 +0200 Subject: [PATCH] chore: check diff script exit codes --- .github/workflows/package.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 904d2da473..cf9ca748ca 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -67,11 +67,11 @@ jobs: working-directory: vocab/ run: | curl -o unlocode-main.jsonld https://raw.githubusercontent.com/uncefact/vocabulary-outputs/main/unlocode.jsonld && echo "Downloaded" - diff <(jq --sort-keys . unlocode-main.jsonld) <(jq --sort-keys . unlocode.jsonld) > unlocode-diff.txt - curl -o unlocode-subdivisions-main.jsonld https://raw.githubusercontent.com/uncefact/vocabulary-outputs/main/unlocode-subdivisions.jsonld - diff <(jq --sort-keys . unlocode-subdivisions-main.jsonld) <(jq --sort-keys . unlocode-subdivisions.jsonld) > unlocode-subdivisions-diff.txt - rm unlocode-main.jsonld - rm unlocode-subdivisions-main.jsonld + diff <(jq --sort-keys . unlocode-main.jsonld) <(jq --sort-keys . unlocode.jsonld) > unlocode-diff.txt && echo "Diff created" + curl -o unlocode-subdivisions-main.jsonld https://raw.githubusercontent.com/uncefact/vocabulary-outputs/main/unlocode-subdivisions.jsonld && echo "Downloaded" + diff <(jq --sort-keys . unlocode-subdivisions-main.jsonld) <(jq --sort-keys . unlocode-subdivisions.jsonld) > unlocode-subdivisions-diff.txt && echo "Diff created" + rm unlocode-main.jsonld && echo "File removed" + rm unlocode-subdivisions-main.jsonld && echo "File removed" - name: commit json-ld working-directory: vocab/