aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/openapi/__generate.yml
diff options
context:
space:
mode:
authorNiels van Velzen <nielsvanvelzen@users.noreply.github.com>2026-03-30 09:41:01 +0200
committerGitHub <noreply@github.com>2026-03-30 09:41:01 +0200
commita536ef88c4633fd1a1b252bf9e02b91d3fff005d (patch)
tree425d810a0ba2f7454a137679ef1b2222fdadaaa5 /.github/workflows/openapi/__generate.yml
parenta0834973ede3ef388a3466070d686294d60d2692 (diff)
parent6b443bb2ec64009f9903388aa87868d30c5c42d7 (diff)
Merge pull request #16463 from dkanada/pull-request
split openapi workflows between pull request and merge
Diffstat (limited to '.github/workflows/openapi/__generate.yml')
-rw-r--r--.github/workflows/openapi/__generate.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/openapi/__generate.yml b/.github/workflows/openapi/__generate.yml
new file mode 100644
index 000000000..255cc49e8
--- /dev/null
+++ b/.github/workflows/openapi/__generate.yml
@@ -0,0 +1,44 @@
+name: OpenAPI Generate
+
+on:
+ workflow_call:
+ inputs:
+ ref:
+ required: true
+ type: string
+ repository:
+ required: true
+ type: string
+ artifact:
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+jobs:
+ main:
+ name: Main
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ ref: ${{ inputs.ref }}
+ repository: ${{ inputs.repository }}
+
+ - name: Configure .NET
+ uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
+ with:
+ dotnet-version: '10.0.x'
+
+ - name: Create File
+ run: dotnet test tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj -c Release --filter Jellyfin.Server.Integration.Tests.OpenApiSpecTests
+
+ - name: Upload Artifact
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ with:
+ name: ${{ inputs.artifact }}
+ path: tests/Jellyfin.Server.Integration.Tests/bin/Release/net10.0/openapi.json
+ retention-days: 14
+ if-no-files-found: error