Skip to content

Automatically enable web builds in forks #991

@wjt

Description

@wjt

Currently after forking this repo you have to take two steps to enable web builds:

  1. Go to Settings → Pages, and set the source to GitHub Actions
  2. Go to Actions and allow actions to run in the fork

We may be able to automate the first one. amalgamate-pages already checks whether Pages is configured correctly:

https://github.com/endlessm/amalgamate-pages/blob/d1b9a5f9311c766c99b187bfdf6c58fef0725c24/action.yml#L13-L23

Maybe we can make it change the setting itself! (And if not we could make that step cause the rest of the workflow to be skipped rather than failing – someone was sad that it was failing and didn't click through to see why.)

We can't automate enabling actions from the workflow, by definition, but we may be able to do this in the magic script (which lives in a private repo unfortunately) which we use to clone the project board. It already does some other repo configuration such as enabling issues.

Metadata

Metadata

Assignees

Labels

Platform: WebChanges & issues relating to the web build of the gamegithub_actionsPull requests that update GitHub Actions code

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions