openai/openai-java

Public

mirrored from https://github.com/openai/openai-javaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v4.35.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/detect-breaking-changes.yml

39lines · modeblame

2f6940a4stainless-app[bot]11 months ago1name: CI
2on:
3pull_request:
4branches:
5- main
6- next
7
8jobs:
9detect_breaking_changes:
10runs-on: 'ubuntu-latest'
11name: detect-breaking-changes
12if: github.repository == 'openai/openai-java'
13steps:
14- name: Calculate fetch-depth
15run: |
16echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17
3349f806Drew Hintz4 months ago18- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2f6940a4stainless-app[bot]11 months ago19with:
20# Ensure we can check out the pull request base in the script below.
21fetch-depth: ${{ env.FETCH_DEPTH }}
22
23- name: Set up Java
3349f806Drew Hintz4 months ago24uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
2f6940a4stainless-app[bot]11 months ago25with:
26distribution: temurin
27java-version: |
288
2921
30cache: gradle
31- name: Set up Gradle
3349f806Drew Hintz4 months ago32uses: gradle/gradle-build-action@fe583dc97e032f41ccc310ea5176f2d7306abbc4 # v2
2f6940a4stainless-app[bot]11 months ago33
34- name: Detect breaking changes
35run: |
36# Try to check out previous versions of the breaking change detection script. This ensures that
37# we still detect breaking changes when entire files and their tests are removed.
38git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
39./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}