seanprashad/leetcode-patterns

Ensure GitHub Pages redeploys after scheduled run-cron job

seanprashad opened this issue · 3 comments

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:

  1. Our companies tooltip doesn't automatically update
  2. The list of companies/question metadata is not pulled live from our gh-pages branch, and therefore still needs a manual deploy via npm run deploy

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: