Skip to content

dataconnect: ci: upgrade data connect emulator to 3.4.21 (was 3.4.19) and firebase-tools to 15.32.0 (was 15.30.0) #4080

dataconnect: ci: upgrade data connect emulator to 3.4.21 (was 3.4.19) and firebase-tools to 15.32.0 (was 15.30.0)

dataconnect: ci: upgrade data connect emulator to 3.4.21 (was 3.4.19) and firebase-tools to 15.32.0 (was 15.30.0) #4080

name: Check Firebase AI Responses
on: pull_request
jobs:
check-version:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Clone mock responses
run: ai-logic/firebase-ai/update_responses.sh
- name: Find cloned and latest versions
run: |
CLONED=$(git describe --tags)
LATEST=$(git tag --sort=v:refname | tail -n1)
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
echo "latest_tag=$LATEST" >> $GITHUB_ENV
working-directory: ai-logic/firebase-ai/src/test/resources/vertexai-sdk-test-data
- name: Find comment from previous run if exists
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
id: fc
with:
issue-number: ${{github.event.number}}
body-includes: Firebase AI Mock Responses Check
- name: Comment on PR if newer version is available
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
issue-number: ${{github.event.number}}
body: >
### Firebase AI Mock Responses Check :warning:
A newer major version of the mock responses for Firebase AI unit tests is available.
[update_responses.sh](https://github.com/firebase/firebase-android-sdk/blob/main/firebase-ai/update_responses.sh)
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
- name: Delete comment when version gets updated
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
uses: detomarco/delete-comments@dd37d1026c669ebfb0ffa5d23890010759ff05d5 # 1.1.0
with:
comment-id: ${{ steps.fc.outputs.comment-id }}