Skip to content

add semaphore and illegal state exception to chat #30

add semaphore and illegal state exception to chat

add semaphore and illegal state exception to chat #30

name: Check for api changes
on: pull_request
jobs:
check-for-api-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/[email protected]
with:
ref: ${{ github.base_ref }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Update released.api
run: |
./gradlew updateApi --no-daemon
- name: Save released.api from master
run: mv generativeai/released.api ~/released.api
- name: Checkout branch
uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Copy saved api to branch
run: mv ~/released.api generativeai/released.api
- name: Run api warning task
run: |
./gradlew warnAboutApiChanges --no-daemon
- name: Add PR Comment
if: ${{ hashFiles('api_changes.md') != '' }}
uses: marocchino/[email protected]
with:
header: api_changes
path: build/api_changes.md
- name: Remove old PR Comment
if: ${{ hashFiles('api_changes.md') == '' }}
uses: marocchino/[email protected]
with:
header: api_changes
delete: true