Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

feat(workflows): pass GITHUB_TOKEN to build, allow schedule + dispatch#46

Merged
rubenvdlinde merged 1 commit into
mainfrom
feat/build-step-token-and-schedule
May 8, 2026
Merged

feat(workflows): pass GITHUB_TOKEN to build, allow schedule + dispatch#46
rubenvdlinde merged 1 commit into
mainfrom
feat/build-step-token-and-schedule

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Two related tweaks to the centralized documentation deploy reusable workflow:

  • Build step now sees GITHUB_TOKEN. Lets npm prebuild scripts hit the GitHub API authenticated. Conduction-website is about to use this for nightly app-downloads enumeration (331 ConductionNL repos); unauthenticated would hit the 60 req/hr ceiling on every build. Token is auto-scoped to the run.
  • Drop the 'push only' guard so schedule and workflow_dispatch also deploy. Currently workflow_dispatch is a no-op on every product repo, which is confusing. Lets conduction-website add a nightly cron that triggers a fresh build with refreshed data, without a bot push to a protected branch.

Used by every product subdomain (mydash, opencatalogi, docs.conduction.nl, etc.) so the changes apply org-wide. PR runs still build but don't deploy (the pull_request event isn't in the new if: list).

Two related tweaks to the centralized documentation deploy:

- Build step now sees GITHUB_TOKEN. Lets npm prebuild scripts hit the
  GitHub API authenticated. Conduction-website is about to use this
  for nightly app-downloads enumeration (331 ConductionNL repos);
  unauthenticated would hit the 60 req/hr ceiling on every build.
- Drop the 'push only' guard so scheduled and dispatched runs also
  deploy. Currently workflow_dispatch is a no-op on every product
  repo, which is confusing. Lets conduction-website add a nightly
  cron that triggers a fresh build with refreshed data without a
  bot push to a protected branch.
@rubenvdlinde rubenvdlinde merged commit 3383e55 into main May 8, 2026
@rubenvdlinde rubenvdlinde deleted the feat/build-step-token-and-schedule branch May 8, 2026 21:14
rubenvdlinde added a commit to ConductionNL/conduction-website that referenced this pull request May 8, 2026
…low (#26)

The old .github/workflows/app-downloads.yml ran nightly and tried to
git push the regenerated data/app-downloads.json to development.
The org-wide PR-required ruleset blocked the bot push, so the data
went stale and the homepage showed '0 downloads'.

Move the refresh to a Docusaurus prebuild step so the JSON is
regenerated on every site build. No bot push, no rule fight. Add a
nightly cron + workflow_dispatch trigger to documentation.yml so the
site rebuilds daily even without code changes, refreshing the data
each time. Centralized workflow already (PR ConductionNL/.github#46)
passes GITHUB_TOKEN to the build step so the script can authenticate
against the GitHub API and avoid the 60 req/hr unauth ceiling on the
331-repo enumeration.

The committed JSON snapshot stays for local-dev convenience but is
overwritten on every CI build.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant