Skip to content

Commit

Permalink
Update workflow and module reference
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Nov 17, 2023
1 parent 6185b6d commit 831c3cb
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 25 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/readmeStats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ name: Generate Statistics Tables for Readme
on: push

jobs:
statistics-2022:
statistics:
name: Benchmark and Update Readme
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ./2022
steps:
- uses: actions/checkout@v4
- run: go build
- run: ./aoc

- run: cd 2022 && go build .
- run: cd 2022 && aoc2022
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update readme statistics
2 changes: 1 addition & 1 deletion 2022/01p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"aoc/utils"
"aoc2022/utils"
)

func D01P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/01p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strconv"

"aoc/utils"
"aoc2022/utils"
)

func D01P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/02p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"aoc/utils"
"aoc2022/utils"
)

func D02P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/02p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

func D02P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/03p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

func D03P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/03p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

func D03P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/04p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"aoc/utils"
"aoc2022/utils"
)

func D04P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/04p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"aoc/utils"
"aoc2022/utils"
)

func D04P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/05p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"aoc/utils"
"aoc2022/utils"
)

func D05P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/05p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"aoc/utils"
"aoc2022/utils"
)

func D05P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/06p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

"aoc/utils"
"aoc2022/utils"
)

func D06P1() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/06p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

"aoc/utils"
"aoc2022/utils"
)

func D06P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/07p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

type file struct {
Expand Down
2 changes: 1 addition & 1 deletion 2022/07p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

func D07P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/08p1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

type tree struct {
Expand Down
2 changes: 1 addition & 1 deletion 2022/08p2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"aoc/utils"
"aoc2022/utils"
)

func D08P2() {
Expand Down
2 changes: 1 addition & 1 deletion 2022/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module aoc
module aoc2022

go 1.21
2 changes: 1 addition & 1 deletion 2022/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"aoc/utils"
"aoc2022/utils"
)

var solutions = map[string]func(){
Expand Down

0 comments on commit 831c3cb

Please sign in to comment.