From b9500a75480f26bce09ed371a93666bb816d777a Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Tue, 12 Apr 2022 20:52:12 +0100 Subject: [PATCH] Update the 'unstable' copy of the site every night at 2am UTC (#1028) --- .github/workflows/main.yml | 4 ++++ scripts/proposals.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71d3ee2c..f0a840bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,10 @@ on: - v* pull_request: workflow_dispatch: + schedule: + # Run this workflow every day at 2am. This helps keep the page of + # current spec proposals up-to-date. + - cron: '0 2 * * *' jobs: validate-openapi: diff --git a/scripts/proposals.js b/scripts/proposals.js index 9a2d2b4e..438fdf37 100644 --- a/scripts/proposals.js +++ b/scripts/proposals.js @@ -98,7 +98,7 @@ async function getIssues() { return null; } - let pageLink = "https://api.github.com/repos/matrix-org/matrix-doc/issues?state=all&labels=proposal&per_page=100"; + let pageLink = "https://api.github.com/repos/matrix-org/matrix-spec-proposals/issues?state=all&labels=proposal&per_page=100"; while (pageLink) { const response = await fetch(pageLink); const issuesForPage = await response.json();