aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-25 11:50:38 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-03-25 11:50:38 -0400
commit015a256f1b373146b7d5549251328a1e9717959d (patch)
treedaa98c16011dc8e49ee6e346fac98947f096ce13
parent1cea9eff6e2d3ec1a4b3a3c491b1f098d787ae30 (diff)
Remove incoming spec if not needed
-rw-r--r--.github/workflows/ci-openapi.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml
index 8d497069b..67de4154d 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