openai/openai-java

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.9.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

35lines · modeblame

33c44437stainless-app[bot]1 years 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
18- uses: actions/checkout@v4
19with:
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
24uses: actions/setup-java@v4
25with:
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: ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}