The Free Software Media System - Server Backend & API
Add more comments
Joshua M. Boniface5cf3e8b6063e
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.ymlindex 5eead47f1e..b80bff1292 100644--- a/.github/workflows/ci-openapi.yml+++ b/.github/workflows/ci-openapi.yml@@ -176,10 +176,12 @@ jobs:script: |TGT_DIR="/srv/repository/main/openapi"LAST_SPEC="$( ls -lt ${TGT_DIR}/unstable/ | grep 'jellyfin-openapi' | head -1 | awk '{ print $NF }' )"+ # If new and previous spec don't differ (diff retcode 0), remove incoming and finishif diff /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json ${TGT_DIR}/unstable/${LAST_SPEC} &>/dev/null; thenrm /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.jsonexit 0fi+ # Move new spec into placesudo 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