This repository relies on using aoc-cli
for downloading th einput files. It requires a .adventofcode.session
file in the home directory. To retrieve the session cookie, press F12 anywhere on the Advent of Code website to open the browser developer tools and copy the session cookie value under the Storage tab.
Navigate to the leaderboard page of the desired year and click on Private Leaderboard. If you haven't created a leaderboard yet, do so by clicking Create It. Your leaderboard should be accessible at https://adventofcode.com/{year}/leaderboard/private/view/{aoc_user_id}
.
Go to the Secrets tab in your repository settings and create the following secrets:
AOC_USER_ID
: Go to the settings and copy the user id. It's the number behind the#
symbol in the first name option. Example:3031
AOC_SESSION
: an active session. See how to installaoc-cli
on how to get session cookie- Set the workflow permission of actions to Read and write