Fix OpenAPI workflow (#11733)

This commit is contained in:
Niels van Velzen 2024-05-19 15:57:51 +02:00 committed by GitHub
parent c0f5fe9bd3
commit 40820e3b41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,10 +142,7 @@ jobs:
publish-unstable:
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
needs:
- openapi-head
@ -207,9 +204,7 @@ jobs:
publish-stable:
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
needs:
- openapi-head