diff --git a/.github/workflows/take_screenshot.yml b/.github/workflows/take_screenshot.yml index 468c084..91a7dc8 100644 --- a/.github/workflows/take_screenshot.yml +++ b/.github/workflows/take_screenshot.yml @@ -11,7 +11,6 @@ on: env: CARGO_TERM_COLOR: always - DISPLAY: :99 RUST_LOG: debug jobs: @@ -31,14 +30,14 @@ jobs: - name: Run and take screenshot run: | - cargo run --release --features selfie > cargo.log 2>&1 & + cargo run --release --features selfie & sleep 5 - name: Commit and push screenshot run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add screenshot.png + git add foo.png git commit -m "Add updated screenshot" git push @@ -47,4 +46,4 @@ jobs: with: name: screenshot path: | - screenshot.png + foo.png diff --git a/src/selfie/mod.rs b/src/selfie/mod.rs index b4f935a..1b04a8e 100644 --- a/src/selfie/mod.rs +++ b/src/selfie/mod.rs @@ -43,5 +43,5 @@ fn save_screenshot(screenshot: SharedPixelBuffer) { .unwrap(); info!("Taking screenshot!"); - let _ = img.save("screenshot.png"); + let _ = img.save("foo.png"); }