-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
- Create GitHub workflow called
fetch-puzzle.ymlto fetch advent of code puzzles - Trigger it:
cron- 5pm UTC between 1-25 December (12 hours after the puzzle is published)workflow_dispatch- taking year and day as arguments
- Set env vars
AOC_SESSION:secrets.AOC_SESSION
- Add permissions needed: content, issues
- Set up
- Check out repo -
uses: actions/checkout@v4 - Setup uv -
uses astral-sh/setup-uv@v4anduv sync
- Check out repo -
- Download the puzzle
- Run
uv run advent_of_code.py download {year} {day}and store the stdout as thepartin$GITHUB_OUTPUT
- Run
- Commit and push puzzle in
puzzles/year_{year}/day_{day}with user GitHub Actions - Trigger
create-puzzle-issue.ymlusing the year, day and part 2 as stringsuses: sourcery-ai/autonomous-advent-of-code/.github/workflows/create-puzzle-issue.yml@main
Metadata
Metadata
Assignees
Labels
No labels