Skip to content

Commit

Permalink
prøv utan log redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Sep 8, 2024
1 parent 5bf3ad1 commit 87c81c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/take_screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

env:
CARGO_TERM_COLOR: always
DISPLAY: :99
RUST_LOG: debug

jobs:
Expand All @@ -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
Expand All @@ -47,4 +46,4 @@ jobs:
with:
name: screenshot
path: |
screenshot.png
foo.png
2 changes: 1 addition & 1 deletion src/selfie/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ fn save_screenshot(screenshot: SharedPixelBuffer<Rgba8Pixel>) {
.unwrap();

info!("Taking screenshot!");
let _ = img.save("screenshot.png");
let _ = img.save("foo.png");
}

0 comments on commit 87c81c0

Please sign in to comment.