Skip to content

Commit c41e4c7

Browse files
committed
Reset matches
1 parent f75876a commit c41e4c7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create release from new tag
2+
3+
# this flow will be run only when new tags are pushed that match our pattern
4+
on:
5+
push:
6+
tags:
7+
- "v[0-9]+.[0-9]+.[0-9]+"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Create GitHub release from tag
19+
uses: softprops/action-gh-release@v2
20+
with:
21+
generate_release_notes: true

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ func (l *League) ResetPlayers() {
260260
}
261261
}
262262

263+
func (l *League) ResetMatches() {
264+
l.Matches = []Match{}
265+
}
266+
263267
func (l *League) GetPlayers() []*Player {
264268
return l.Players
265269
}

0 commit comments

Comments
 (0)