From 7f4a05accd7aea2542be8816111b0f20e3ed5d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sverre=20Johann=20Bj=C3=B8rke?= Date: Mon, 11 Mar 2024 20:56:33 +0100 Subject: [PATCH] wait until completed build --- .github/workflows/take_screenshot.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/take_screenshot.yml b/.github/workflows/take_screenshot.yml index 1ead06d..f753c5f 100644 --- a/.github/workflows/take_screenshot.yml +++ b/.github/workflows/take_screenshot.yml @@ -49,8 +49,9 @@ jobs: run: | Xvfb :0 -screen 0 768x1024x24 > /dev/null 2>&1 & sleep 5 # Add a delay to give Xvfb time to start + cargo build --release cargo run --release & - sleep 5 + sleep 15 scrot -o screenshot.png - name: Commit and push screenshot