-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
- Create GitHub workflow called
submit-advent-of-code.yml - Trigger on
- Push to
mainwith file changes topuzzles/year_*/day_*/answer_part*.txt workflow_dispatch
- Push to
- Set env vars
AOC_SESSION:secrets.AOC_SESSIONGH_TOKEN:secrets.USER_TOKEN
- Set up
- Check out repo -
uses: actions/checkout@v4 - Setup uv -
uses astral-sh/setup-uv@v4anduv sync
- Check out repo -
- Set concurrency to only run one at a time in this repo and don't cancel in progress runs
- Add permissions needed: content, issues
- Submit solution using
uv run advent_of_code.py submit {year} {day} {part}- Mark this step as successful even if the exit code was 1
- Update results section in README.md by running
uv run advent_of_code.py update-results {year} - If it was part 1 and the submission was correct:
- download part two with
uv run advent_of_code.py download {year} {day}and output thepartwhich is printed by the command
- download part two with
- Commit and push puzzles in
puzzleswith user GitHub Actions - Trigger
create-puzzle-issue.ymlusing the year, day and part 2 as strings if part two was downloadeduses: sourcery-ai/autonomous-advent-of-code/.github/workflows/create-puzzle-issue.yml@main
Metadata
Metadata
Assignees
Labels
No labels