Skip to content

Commit 3003bf2

Browse files
authored
call ffi-build workflow after release (#670)
1 parent 89355fb commit 3003bf2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,25 @@ jobs:
2727
uses: dtolnay/rust-toolchain@stable
2828
- name: Run release-plz
2929
uses: release-plz/action@v0.5
30+
id: release-plz
3031
with:
3132
command: release
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3435
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
36+
- name: Trigger FFI workflow if needed
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
RELEASES: ${{ steps.release-plz.outputs.releases }}
40+
run: |
41+
set -e
42+
echo "releases: $RELEASES"
43+
44+
ffi_tag=$(echo "$RELEASES" | jq -r '.[].tag' | grep 'rust-sdks/livekit-ffi@' || true)
45+
if [ -n "$ffi_tag" ]; then
46+
echo "Found ffi_tag: $ffi_tag"
47+
gh workflow run ffi-builds.yml --ref $ffi_tag
48+
fi
3549
3650
# Create a PR with the new versions and changelog, preparing the next release.
3751
release-plz-pr:

0 commit comments

Comments
 (0)