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

Disabling GH Pages does not work when the github-pages environment still exists #270

Open
netomi opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@netomi
Copy link
Contributor

netomi commented Sep 11, 2024

For convenience reasons, the github-pages environment will be ignored by otterdog when it is not present in the configuration.
This normally works fine, however, when disabling GH Pages, the environment needs to be deleted first as otherwise the API call fails with:

[TRACE] 'DELETE' result = (422, {"message":"Deactivating GitHub pages for this repository is not allowed.","documentation_url":"https://docs.github.com/rest/pages/pages#delete-a-apiname-pages-site","status":"422"})

Thus we need to explicitly delete the github-pages environment when disabling GH Pages even if its not present in the configuration.

@netomi netomi added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant