Ensure GitHub Pages redeploys after scheduled run-cron job
seanprashad opened this issue · 3 comments
seanprashad commented
In 1f3beff, we run https://github.com/seanprashad/leetcode-patterns/blob/master/cron/update_questions.py via https://github.com/seanprashad/leetcode-patterns/blob/master/.github/workflows/run-cron.yml to update the companies on a weekly basis.
The problem is that we don't actually redeploy the updated website, which leads to two problems:
- Our companies tooltip doesn't automatically update
- The list of companies/question metadata is not pulled live from our
gh-pagesbranch, and therefore still needs a manual deploy vianpm run deploy
seanprashad commented
Look into triggering a second GitHub Action: https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed
Need to confirm, but we could do something like:
run_cron.ymlruns on the scheduled time- After successfully completing, run https://github.com/seanprashad/leetcode-patterns/actions/workflows/github-pages.yml to pull the updates files from the
masterbranch, build, and then deploy them
seanprashad commented
seanprashad commented