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();