Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can only specify existing branches for gh pages deployment #96

Closed
eclipse-csi-bot opened this issue Aug 3, 2023 · 3 comments
Closed

Comments

@eclipse-csi-bot
Copy link
Contributor

In GitLab by @netomi on Aug 3, 2023, 20:05

When selecting legacy build type with a given deploy branch for GH pages, if the branch does not exist, GitHub will return an error.
This is consistent with the Web UI, where you can only select existing branches, however if would be useful if we can even specify non-existant branches as during validation we do know if the branch already exists.

One idea could be that we would create the branch if it does not exist yet, or enhance the validation to retrieve existing branches for the repo.

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Aug 4, 2023, 10:09

It looks like you can specify non-existing branches, but only when gh pages have been activated before.
A workaround would be to enable it first with the main branch and then change the branch.

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Aug 4, 2023, 11:06

mentioned in commit 852fa31

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Aug 4, 2023, 11:11

Fixed by setting to an existing branch first and setting afterwards to the configured branch. That works with the GitHub api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant