Update a pinned gist to contain the weather, wherever you are!
📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gist
scope and copy it. (https://github.com/settings/tokens/new) - Get your openweathermap api key from here
-
Fork this repo
-
Create a new blank gist and grab the end part of the URL
- GIST_ID: The ID portion from your gist url:
https://gist.github.com/joshghent/
2d5f82ddf12683b47fc27f987a561d03
.
- GIST_ID: The ID portion from your gist url:
-
Go to the repo Settings > Secrets
-
Add the following environment variables:
- GH_TOKEN: The GitHub token generated above.
- OPENWEATHERMAP_API_KEY: The API key for your OpenWeatherMap account.
- GIST_ID: The Gist ID that we got in Step 2
-
Copy the contents of
.github/workflows/schedule.yml
, then delete the file and commit it. Then recreate the file and paste the contents back in (this is due to forked repos not running actions)