From 3c585ec1fb7de44a50160b397da1b7f778c9c40a Mon Sep 17 00:00:00 2001 From: joaquintomas2003 Date: Sat, 1 Feb 2025 13:40:21 -0300 Subject: [PATCH] --wip-- [skip ci] --- .github/workflows/scraper.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 098e7e13..c63f206a 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -31,21 +31,11 @@ jobs: bundle exec rake scraper sed -i -e 's/ $//' db/data/*.yml git add db/data - if ! git diff --cached --quiet; - then - git config --global user.email "micarrera@cedarcode.com" - git config --global user.name "MiCarrera" - git commit -m 'chore: update scraped subjects data' - git push -f origin HEAD:scraper - if [ $(gh pr list --head scraper --json title --jq 'length') == '0' ]; - then - gh pr create \ - --title "Update scraped subjects data" \ - --body "This PR runs `rails scraper` to update scraped subjects' data" \ - --head scraper - else - echo "A PR already exists and was correctly updated." - fi - 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: 2