Release common 0.10.0 #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Warn Version Bump | |
on: pull_request | |
jobs: | |
warn-version-bump: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout target branch | |
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: Generate the api file | |
run: | | |
./gradlew exportApi --no-daemon | |
- name: Save public.api from target branch | |
run: | | |
mkdir ~/common/ && \ | |
mkdir ~/generativeai/ && \ | |
mv generativeai/public.api ~/generativeai/public.api && \ | |
mv common/public.api ~/common/public.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 ~/generativeai/public.api generativeai/public.api && \ | |
mv ~/common/public.api common/public.api | |
- name: Run API versioning check | |
run: | | |
if ! test -d .changes || git diff --quiet ${{ github.event.pull_request.base.sha }}..HEAD .changes ; then ./gradlew warnVersionBump ; else exit 0 ; fi |