Skip to content

Commit

Permalink
ci: incorrect handling of update-votes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBrunhage committed Dec 5, 2024
1 parent fc01c37 commit e08a231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-votes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ jobs:
// Create votes.json with the current vote counts
const votes = {};
for (const discussion of allDiscussions) {
if (discussion.title.startsWith('Vote: ')) {
const appName = discussion.title.replace('Vote: ', '').split(' by ')[0];
if (discussion.title.startsWith('Vote ' + currentYear)) {
const appName = discussion.title.split(': ')[1].split(' by ')[0];
votes[appName] = {
id: discussion.id,
votes: discussion.upvoteCount
Expand Down

0 comments on commit e08a231

Please sign in to comment.