diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2024-03-25 11:53:40 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2024-03-25 11:53:40 -0400 |
| commit | 5cf3e8b6063e1d0bbad2662b7c77113191f135d0 (patch) | |
| tree | cadec5051353d417f49aad923fa3aa0fe8fbc504 | |
| parent | 77cc4068b18a23f6514b2ac92d3f8c3f9de7b8ae (diff) | |
Add more comments
| -rw-r--r-- | .github/workflows/ci-openapi.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml index 5eead47f1..b80bff129 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 finish 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 + # Move new spec into place sudo 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.json sudo rm ${TGT_DIR}/jellyfin-openapi-unstable_previous.json |
