From 015a256f1b373146b7d5549251328a1e9717959d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 25 Mar 2024 11:50:38 -0400 Subject: [PATCH] Remove incoming spec if not needed --- .github/workflows/ci-openapi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml index 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 }}.json exit 0 fi sudo mv /srv/incoming/openapi/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json ${TGT_DIR}/unstable/jellyfin-openapi-${{ env.JELLYFIN_VERSION }}.json