Skip to content

Commit

Permalink
Add cron to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhincore committed Nov 9, 2024
1 parent 87a63e1 commit 25476d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
schedule:
- cron: "0 5 * * *"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down
1 change: 1 addition & 0 deletions src/lib/server/lizzy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Role {
export interface DiscordMember {
Username: string;
Nickname: string | null;
Displayname: string;
Image: string;
ID: string;
Bot: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/lib/server/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export async function fetchTeams() {

export async function getCachedMembers() {
if (!cache) cache = await _fetchMembers();
console.log(cache.memberMap.zhincore);
return cache;
}

Expand Down

0 comments on commit 25476d2

Please sign in to comment.