Using a self-rewriting README powered by GitHub Actions to track TILs
11–20 of 32 posts
To push back to GitHub, you can also use this action: https://github.com/ad-m/github-push-action
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#12Nice! I've been doing this for a while too -- https://github.com/raivivek/til
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#13Nice. I imagine this could be used to list and track TODOs in code as well.
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#14What a coincidence. I implemented the exact same thing yesterday. It also happened to be my TIL for that day: how to create a Github Action.
My setup turned up much simpler, as I did not have some of the constraints that you wanted.
https://github.com/aicioara/til/blob/master/github/github-ac...
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#15This is cool stuff. But could someone explain how this is a self-rewriting README? It looks to me like a file updated by a commit hook.
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#16Also inspired by the same post, I set up a TIL repo. I went with a shell script where you pass the category and the filename and it creates the file and recreates the README:
https://github.com/acdibble/til/blob/master/create_til.sh
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#17What's wrong with Pinboard notes?
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#18Nice! Like the idea of tracking TILs with git. I've also made self-rewriting READMEs. I did something similar but using plain git hooks (post-commit) and sed. I had to run 'git --amend' in the hook though (to avoid generating double-commits) which is probably a bad idea.
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#19What a coincidence. I implemented the exact same thing yesterday. It also happened to be my TIL for that day: how to create a Github Action. My setup turned up much simpler, as I did not have some of the constraints that you wanted. https://github.com/aicioara/til/blob/master/github/github-ac...
Hah, that IS a coincidence! Really nice solution you have there - very minimal, and achieves exactly the same job with regards to the README.
Re: Using a self-rewriting README powered by GitHub Actions to track TILs
#20This is cool stuff. But could someone explain how this is a self-rewriting README? It looks to me like a file updated by a commit hook.
That's exactly what it is. Maybe "self-rewriting" isn't the best summary - it's the repo that does the rewrite, not the README file itself.