The Free Software Media System - Server Backend & API
Only proceed if the spec differs
Joshua M. Boniface77bd040c1fdd
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.ymlindex f8a35999e6..79f046be83 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+ fisudo 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.jsonsudo rm ${TGT_DIR}/jellyfin-openapi-unstable_previous.json