openai/openai-java

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v4.28.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
de8d6db6stainless-app[bot]6 months ago18- uses: actions/checkout@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
de8d6db6stainless-app[bot]6 months ago24uses: actions/setup-java@v5
2f6940a4stainless-app[bot]11 months ago25with:
26distribution: temurin
27java-version: |
288
2921
30cache: gradle
31- name: Set up Gradle
32uses: gradle/gradle-build-action@v2
33
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 }}