The Free Software Media System - Server Backend & API
Format workflows
Shadowghost85ff70859711
diff --git a/.github/workflows/ci-codeql-analysis.yml b/.github/workflows/ci-codeql-analysis.ymlindex 5ca3edd7ba..6d4f4edb69 100644--- a/.github/workflows/ci-codeql-analysis.yml+++ b/.github/workflows/ci-codeql-analysis.yml@@ -21,6 +21,7 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1+- name: Setup .NETuses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1with:@@ -31,7 +32,9 @@ jobs:with:languages: ${{ matrix.language }}queries: +security-extended+- name: Autobuilduses: github/codeql-action/autobuild@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9+- name: Perform CodeQL Analysisuses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.ymlindex 46af68e587..95c0facf38 100644--- a/.github/workflows/ci-openapi.yml+++ b/.github/workflows/ci-openapi.yml@@ -20,12 +20,15 @@ jobs:with:ref: ${{ github.event.pull_request.head.sha }}repository: ${{ github.event.pull_request.head.repo.full_name }}+- name: Setup .NETuses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1with:dotnet-version: '9.0.x'+- name: Generate openapi.jsonrun: dotnet test tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj -c Release --filter "Jellyfin.Server.Integration.Tests.OpenApiSpecTests"+- name: Upload openapi.jsonuses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:@@ -46,6 +49,7 @@ jobs:ref: ${{ github.event.pull_request.head.sha }}repository: ${{ github.event.pull_request.head.repo.full_name }}fetch-depth: 0+- name: Checkout common ancestorenv:HEAD_REF: ${{ github.head_ref }}@@ -54,12 +58,15 @@ jobs:git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules upstream +refs/heads/*:refs/remotes/upstream/* +refs/tags/*:refs/tags/*ANCESTOR_REF=$(git merge-base upstream/${{ github.base_ref }} origin/$HEAD_REF)git checkout --progress --force $ANCESTOR_REF+- name: Setup .NETuses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1with:dotnet-version: '9.0.x'+- name: Generate openapi.jsonrun: dotnet test tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj -c Release --filter "Jellyfin.Server.Integration.Tests.OpenApiSpecTests"+- name: Upload openapi.jsonuses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:@@ -84,22 +91,27 @@ jobs:with:name: openapi-headpath: openapi-head+- name: Download openapi-baseuses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: openapi-basepath: openapi-base+- name: Workaround openapi-diff issuerun: |sed -i 's/"allOf"/"oneOf"/g' openapi-head/openapi.jsonsed -i 's/"allOf"/"oneOf"/g' openapi-base/openapi.json+- name: Calculate OpenAPI difference+ id: openapi-diffuses: docker://openapitools/openapi-diffcontinue-on-error: truewith:args: --fail-on-changed --markdown openapi-changes.md openapi-base/openapi.json openapi-head/openapi.json- - id: read-diff- name: Read openapi-diff output++ - name: Read openapi-diff output+ id: read-diffrun: |# Read and fix markdownbody=$(cat openapi-changes.md)@@ -178,7 +190,6 @@ jobs:username: "${{ secrets.REPO_USER }}"key: "${{ secrets.REPO_KEY }}"debug: false- script_stop: falsescript: |if ! test -d /run/workflows; thensudo mkdir -p /run/workflows@@ -240,7 +251,6 @@ jobs:username: "${{ secrets.REPO_USER }}"key: "${{ secrets.REPO_KEY }}"debug: false- script_stop: falsescript: |if ! test -d /run/workflows; thensudo mkdir -p /run/workflowsdiff --git a/.github/workflows/commands.yml b/.github/workflows/commands.ymlindex 0d3e09d1a1..a70ec00eef 100644--- a/.github/workflows/commands.yml+++ b/.github/workflows/commands.yml@@ -43,13 +43,16 @@ jobs:uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1with:repository: jellyfin/jellyfin-triage-script+- name: install pythonuses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0with:python-version: '3.14'cache: 'pip'+- name: install python packagesrun: pip install -r rename/requirements.txt+- name: run rename scriptrun: python3 rename.pyworking-directory: ./renamediff --git a/.github/workflows/issue-template-check.yml b/.github/workflows/issue-template-check.ymlindex 8be48b5c3a..53a66e013e 100644--- a/.github/workflows/issue-template-check.yml+++ b/.github/workflows/issue-template-check.yml@@ -13,13 +13,16 @@ jobs:uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1with:repository: jellyfin/jellyfin-triage-script+- name: install pythonuses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0with:python-version: '3.14'cache: 'pip'+- name: install python packagesrun: pip install -r main-repo-triage/requirements.txt+- name: check and comment issueworking-directory: ./main-repo-triagerun: python3 single_issue_gha.pydiff --git a/.github/workflows/project-automation.yml b/.github/workflows/project-automation.ymlindex d62f655b30..7b29d3c817 100644--- a/.github/workflows/project-automation.yml+++ b/.github/workflows/project-automation.yml@@ -21,6 +21,7 @@ jobs:with:project: Current Releaseaction: delete+ column: In progressrepo-token: ${{ secrets.JF_BOT_TOKEN }}- name: Add to 'Release Next' project