Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquintomas2003 committed Feb 1, 2025
1 parent f008d94 commit 3c585ec
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3c585ec

Please sign in to comment.