aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-25 11:52:02 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-03-25 11:52:02 -0400
commit77cc4068b18a23f6514b2ac92d3f8c3f9de7b8ae (patch)
tree56c400aa8030445abb89ec74b2d5134462883acc
parent015a256f1b373146b7d5549251328a1e9717959d (diff)
Flip conditional
diff returns 0 if no difference which is what we want.
-rw-r--r--.github/workflows/ci-openapi.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml
index 67de4154d..5eead47f1 100644
--- a/.github/workflows/ci-openapi.yml
+++ b/.github/workflows/ci-openapi.yml
@@ -176,7 +176,7 @@ jobs:
script: |
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
+ 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