The Free Software Media System - Server Backend & API
Remove incoming spec if not needed
Joshua M. Boniface015a256f1b37
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.ymlindex 8d497069b9..67de4154d7 100644--- a/.github/workflows/ci-openapi.yml+++ b/.github/workflows/ci-openapi.yml@@ -177,6 +177,7 @@ jobs:TGT_DIR="/srv/repository/main/openapi"LAST_SPEC="$( ls -lt ${TGT_DIR}/unstable/ | 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+ rm /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.jsonexit 0fisudo mv /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json ${TGT_DIR}/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json