diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-03-31 17:49:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-31 17:49:59 +0200 |
| commit | 376769c732898e50158f30556cef1ac89a47a243 (patch) | |
| tree | 6a48810aee3bd8bebdc9aa9ee1610f6c6895d7bd /.github/workflows/openapi/pull-request.yml | |
| parent | b6e4b3a4f5e9079b673885339b2219f94c27f3c7 (diff) | |
| parent | c5ee639016f1ed4080e63f8dd6e98d10b56138e1 (diff) | |
Merge pull request #16524 from dkanada/api-workflows
remove nested directory for openapi workflows
Diffstat (limited to '.github/workflows/openapi/pull-request.yml')
| -rw-r--r-- | .github/workflows/openapi/pull-request.yml | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/.github/workflows/openapi/pull-request.yml b/.github/workflows/openapi/pull-request.yml deleted file mode 100644 index 307102782..000000000 --- a/.github/workflows/openapi/pull-request.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: OpenAPI Check -on: - pull_request: - -jobs: - ancestor: - name: Common Ancestor - runs-on: ubuntu-latest - outputs: - base_ref: ${{ steps.ancestor.outputs.base_ref }} - steps: - - name: Checkout Repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - ref: ${{ github.event.pull_request.head.sha }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - fetch-depth: 0 - - name: Search History - id: ancestor - run: | - git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }} - git 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 }} HEAD) - - echo "ref: ${ANCESTOR_REF}" - - echo "base_ref=${ANCESTOR_REF}" >> "$GITHUB_OUTPUT" - - head: - name: Head Artifact - uses: ./.github/workflows/openapi/__generate.yml - with: - ref: ${{ github.event.pull_request.head.sha }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - artifact: openapi-head - - base: - name: Base Artifact - uses: ./.github/workflows/openapi/__generate.yml - needs: - - ancestor - with: - ref: ${{ needs.ancestor.outputs.base_ref }} - repository: ${{ github.event.pull_request.base.repo.full_name }} - artifact: openapi-base - - diff: - name: Generate Report - runs-on: ubuntu-latest - needs: - - head - - base - steps: - - name: Download Head - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: openapi-head - path: openapi-head - - name: Download Base - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: openapi-base - path: openapi-base - - name: Detect Changes - uses: jellyfin/openapi-diff-action@9274f6bda9d01ab091942a4a8334baa53692e8a4 # v1.0.0 - id: openapi-diff - with: - old-spec: openapi-base/openapi.json - new-spec: openapi-head/openapi.json - markdown: openapi-changelog.md - github-token: ${{ secrets.GITHUB_TOKEN }} |
