Skip to content

Commit 93d442a

Browse files
committed
Updated PR workflow
1 parent c02f853 commit 93d442a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/pr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
121121
- name: Setup FFmpeg
122122
uses: FedericoCarboni/setup-ffmpeg@v3
123+
id: setup-ffmpeg
123124

124125
- name: Wait for services to start
125126
run: |
@@ -141,7 +142,8 @@ jobs:
141142
142143
# Use ffprobe to check stream properties
143144
echo "Checking stream properties with ffprobe..."
144-
timeout 30 ffprobe -v quiet -print_format json -show_streams rtmp://localhost:1935/live/stream > stream_info.json 2>/dev/null || {
145+
echo "Using ffprobe from: ${{ steps.setup-ffmpeg.outputs.ffmpeg-path }}/ffprobe"
146+
timeout 30 "${{ steps.setup-ffmpeg.outputs.ffmpeg-path }}/ffprobe" -v quiet -print_format json -show_streams rtmp://localhost:1935/live/stream > stream_info.json 2>/dev/null || {
145147
echo "Stream not available yet, checking container logs..."
146148
docker logs stream-webpage
147149
docker logs $(docker ps -q --filter ancestor=tiangolo/nginx-rtmp)

0 commit comments

Comments
 (0)