diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2024-03-25 11:47:29 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2024-03-25 11:48:46 -0400 |
| commit | 77bd040c1fdd6d7b4f621eaaa98b5c25d0292bc3 (patch) | |
| tree | 0359e55e42e044f6a186817254bedea7a976232d | |
| parent | a08f8e22da1b15a16cc6558e10eb18146d5b36a6 (diff) | |
Only proceed if the spec differs
Avoids overwriting identical specs and burying the old ones.
| -rw-r--r-- | .github/workflows/ci-openapi.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml index f8a35999e..79f046be8 100644 --- a/.github/workflows/ci-openapi.yml +++ b/.github/workflows/ci-openapi.yml @@ -176,6 +176,9 @@ jobs: script: | TGT_DIR="/srv/repository/main/openapi" LAST_SPEC="$( ls -lt ${TGT_DIR} | grep 'jellyfin-openapi' | head -1 | awk '{ print $NF }' )" + if ! diff /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json ${TGT_DIR}/unstable/${LAST_SPEC} &>/dev/null; then + exit 0 + fi sudo mv /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json ${TGT_DIR}/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json # Delete previous jellyfin-openapi-unstable_previous.json sudo rm ${TGT_DIR}/jellyfin-openapi-unstable_previous.json |
