📚 All my TILs on github

Neat! You found every TIL snippet that I have written about github.

Atom feed for github

github Accessing a secret in a GitHub Action - 2023-01-02

I'm setting up git scraping to keep track of how many songs I have scrobbed on last.fm. I forked this project and started modifying .github/workflows/scrape.yml to meet my needs. The last.fm docs for user.getInfo say that api_key is Required. How can I store my API key as a secret and access it in scrape.yml? The docs have a section on accessing the secret in bash. In the end, the line that uses the secret looks like this: …