3

I have a Github wiki that I am maintaining and I want to include a section that displays whether or not the python dependancies within requirements.txt are outdated. I know how to do this manually using:

pip list --outdated

What is the easiest way that I can dynamically have that called whenever the page is accessed? or another method that gives the same result?

mattjegan
  • 2,724
  • 1
  • 26
  • 37

1 Answers1

1

"whenever the page is accessed"

I am not aware of a webhook trigger by accessing the page: that would be costly whenever a lot of people want to read said page.

But since a GitHub wiki is a repo, it should be possible, as a pre-push commit to trigger a local command pip list --outdated and modify the wiki locally cloned repo in order to push that output to the wiki, before finally pushing your commit on your regular repo.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250