Browse Source

Fix OpenAPI workflow (#11733)

Niels van Velzen 1 năm trước cách đây
mục cha
commit
40820e3b41
1 tập tin đã thay đổi với 2 bổ sung7 xóa
  1. 2 7
      .github/workflows/ci-openapi.yml

+ 2 - 7
.github/workflows/ci-openapi.yml

@@ -142,10 +142,7 @@ jobs:
 
 
   publish-unstable:
   publish-unstable:
     name: OpenAPI - Publish Unstable Spec
     name: OpenAPI - Publish Unstable Spec
-    if: |
-      github.event_name != 'pull_request_target' && 
-      ${{ ! startsWith(github.ref, 'refs/tags/v') }} &&
-      contains(github.repository_owner, 'jellyfin')
+    if: ${{ github.event_name != 'pull_request_target' && !startsWith(github.ref, 'refs/tags/v') && contains(github.repository_owner, 'jellyfin') }}
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs:
     needs:
       - openapi-head
       - openapi-head
@@ -207,9 +204,7 @@ jobs:
 
 
   publish-stable:
   publish-stable:
     name: OpenAPI - Publish Stable Spec
     name: OpenAPI - Publish Stable Spec
-    if: |
-      startsWith(github.ref, 'refs/tags/v') && 
-      contains(github.repository_owner, 'jellyfin')
+    if: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.repository_owner, 'jellyfin') }}
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs:
     needs:
       - openapi-head
       - openapi-head