Skip to content

Commit a4ff695

Browse files
authored
Trigger components-android on release (#882)
1 parent 16030ec commit a4ff695

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/changesets.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,25 @@ jobs:
153153
branch: dl/update_snapshot_ver
154154
title: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }}
155155
commit-message: Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }}
156+
157+
notify-components-android:
158+
needs: release
159+
name: Notify Components Android
160+
if: ${{ needs.release.outputs.hasPublished == 'true' }}
161+
runs-on: ubuntu-latest
162+
163+
steps:
164+
- name: Checkout Repo
165+
uses: actions/checkout@v4
166+
167+
- name: Get version
168+
id: version
169+
run: echo "VERSION=$(./ci/get_version.sh)" >> "$GITHUB_OUTPUT"
170+
171+
- name: Dispatch to components-android
172+
uses: peter-evans/repository-dispatch@v3
173+
with:
174+
token: ${{ secrets.E2E_DISPATCH_TOKEN }}
175+
repository: livekit/components-android
176+
event-type: update-livekit-version
177+
client-payload: '{"version": "${{ steps.version.outputs.VERSION }}"}'

0 commit comments

Comments
 (0)