Skip to content

Commit

Permalink
fix(ui): fix nightly release notifications (LizardByte#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored and e-dong committed Jul 26, 2024
1 parent 92d5f28 commit 1f8a1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_assets/common/assets/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2>Legal</h2>
this.version = (await fetch("/api/config").then((r) => r.json())).version;
this.githubVersion = (await fetch("https://api.github.com/repos/LizardByte/Sunshine/releases/latest").then((r) => r.json()));
if (this.buildVersionIsNightly) {
this.nightlyData = (await fetch("https://api.github.com/repos/LizardByte/Sunshine/actions/workflows/CI.yml/runs?branch=nightly&status=success&per_page=1").then((r) => r.json())).workflow_runs[0];
this.nightlyData = (await fetch("https://api.github.com/repos/LizardByte/Sunshine/actions/workflows/CI.yml/runs?branch=nightly&event=push&exclude_pull_requests=true&per_page=1").then((r) => r.json())).workflow_runs[0];
}
} catch(e){
}
Expand Down

0 comments on commit 1f8a1b6

Please sign in to comment.