[HN Gopher] Use GitHub Actions to Make Your GitHub Profile Dynamic
___________________________________________________________________
Use GitHub Actions to Make Your GitHub Profile Dynamic
Author : mooreds
Score : 93 points
Date : 2023-04-10 17:26 UTC (5 hours ago)
(HTM) web link (www.bengreenberg.dev)
(TXT) w3m dump (www.bengreenberg.dev)
| tedivm wrote:
| I have a job that runs every night and updates the statistics in
| my profile.
|
| * https://github.com/tedivm/
|
| * https://github.com/tedivm/tedivm/blob/main/.github/workflows...
| boredumb wrote:
| excited to see the next leap forward in github becoming myspace
| for devs
| stabbles wrote:
| The only thing that's missing is a custom repeated background
| image like it's myspace
| bastardoperator wrote:
| If only we could get a blink tag and some techno music playing
| full blast.
| vorticalbox wrote:
| You're forgetting a marquee for the latest updates
| viscanti wrote:
| That's still under construction, which we'll need another
| marquee or images to let everyone know about.
| OJFord wrote:
| A much easier way to do this (or at least to get started) is with
| https://github.com/muesli/markscribe - you just have to write a
| Go template readme.md.tpl, and run the Action on a cron and it
| will render it to readme.md.
|
| The article makes it seem like there's something special about
| .github/scripts - but using that is if anything a _bad_ idea, it
| 's not special, but maybe it will be (at GitHub's discretion) in
| the future. There's two good points to make: 1) you can have a
| profile readme; 2) you might like to update it via a cron Action.
| But don't put your script there and all the waffle about TS and
| Ruby and whatever is beside the point.
| beardog wrote:
| You can also make your profile readme executable scripts, since
| shell scripts can be more or less valid markdown. See mine:
| https://github.com/egosown
| OkayPhysicist wrote:
| Very cool. Literate programming is always an interesting
| exercise. In my undergrad I developed a little Julia macro
| library for turning my code with LaTeX encoded comments into a
| LaTeX document with code blocks, since the relevant source code
| needed to be explained as a central part of my thesis.
|
| P.S., nice profile. Just finished reading the Landstreicher
| translation of The Unique and Its Property last night.
| beardog wrote:
| Indeed, I think literate programming might see a resurgence
| with the help of LLM tooling. Both Copilot and ChatGPT
| already have some ability with it and in the former case it
| helps with the loss of autocomplete you typically get when
| doing literate programming.
| OkayPhysicist wrote:
| The autocomplete problem is pretty easily solved by
| implementing custom language servers that just dispatch to
| two existing language servers depending on context. I was
| half way through doing that before realizing that the
| entire project was a massive yak-shave off of the thesis I
| needed to finish.
|
| I do think that it should be considered best practice to
| leave the prompt that generated some functional code inline
| in a comment or so forth. It acts as a marker letting the
| reader know "this is what the code was _intended_ to do ".
| If I find some weird code on a bug hunt, I need to spend
| time triaging it between "weird code required because of
| weird intent", "weird code that works, but a simpler
| solution exists", and "weird code that contains the bug I'm
| looking for". Context helps, and if you're writing the
| context anyway, there's no reason to exclude it from the
| source.
| darekkay wrote:
| This became popular 3 years ago when I made my profile auto-
| update with my latest blog posts [1]. Fun stuff. Others had way
| more creative ideas.
|
| [1] https://darekkay.com/blog/github-profile-readme/
| nikeee wrote:
| I've seen something like this used to show the last X commits in
| a readme and I hate to be _that_ guy, but do we really need
| scripts that spin up a VM and install python/ruby/whatever
| multiple times a day just to potentially update a readme that
| will only a few people see?
|
| Doing this once a week, like the article mentions, should be good
| enough for most people. It's not _that_ critical information.
| simonw wrote:
| I've been running my profile like this for nearly three years now
| - it works great! https://simonwillison.net/2020/Jul/10/self-
| updating-profile-...
|
| https://github.com/simonw is my profile.
|
| https://github.com/simonw/simonw/commits/main shows 1,490 commits
| updating my profile so far, almost all of them from the GitHub
| Actions automation.
| Krutonium wrote:
| Mine is a fish tank. https://github.com/Krutonium
| maett wrote:
| Awesome :D
| wingi wrote:
| It would be more easy if your blog would offer an rss-feed ...
| but thank you for the idea.
___________________________________________________________________
(page generated 2023-04-10 23:00 UTC)