Skip to content

Commit

Permalink
Merge pull request #644 from cedarcode/jt--save_scraper_screenshots
Browse files Browse the repository at this point in the history
upload scraper screenshots in case of failure
  • Loading branch information
joaquintomas2003 authored Feb 1, 2025
2 parents 32c40bf + f4f2663 commit 2c9a3d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ jobs:
else
echo "There were no changes. Nothing to do."
fi
- name: Upload screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: scraper_screenshot
path: ./tmp/capybara
retention-days: 5
2 changes: 1 addition & 1 deletion lib/scraper/bedelias.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def scrape
Capybara.configure do |config|
config.default_driver = ENV["HEADLESS"] == "false" ? :selenium_chrome : :selenium_chrome_headless
config.run_server = false
config.save_path = "tmp"
config.save_path = "tmp/capybara"
config.threadsafe = true
end

Expand Down

0 comments on commit 2c9a3d5

Please sign in to comment.