amplify-hosting
amplify-hosting copied to clipboard
Builds not being triggered after migration to github app
Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the FAQ.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
d3o2mfqbaswdfz
Region
us-west-2
Amplify Hosting feature
Not applicable
Describe the bug
New commits are not triggering builds after going through the "Migrate to our GitHub App" steps. Prior to going through those migration steps new builds would be triggered upon commit. Within Github the app appears to be configured correctly and has access to the appropriate repo etc, and I also receive a success message from within Amplify.
I do not appear to have any webhooks installed on the repo, so it seems possible that it's failing on the last step to finalize the installation, where it should delete the old webhooks and install new ones, possibly it only deleted the old and no new one was installed.
Expected behavior
When I commit a change to the repo, builds will be automatically kicked off.
Reproduction steps
- Migrate to Github App
- Commit change to repo
- No build is kicked off
Build Settings
No response
Additional information
No response
This is blocking our deployments so I'd really love to hear what steps we can take to revert back to oauth or do manual deploys without downtime. From the docs I don't really see how I can switch to manual deploys without tearing down the current production deploy and starting over, which doesn't seem like a great solution, but maybe I'm missing something. Many thanks.
Hi @christophersutton 👋🏽 I'm working on reproducing this behavior and syncing with the team on a workaround. In the mean time, have you tried reconnecting your repository in general settings?
Hi @hloriana, thanks for taking a look. I just reconnected in general settings and pushed to a feature branch but it's still not picking up the commit.
@christophersutton I was not able to produce this behavior. Does your repo belong to a GitHub organization?
For a workaround, please use this guide to setup an incoming webhook and use the curl
command to trigger builds: https://docs.aws.amazon.com/amplify/latest/userguide/webhooks.html
We are deep diving on this issue. Thank you for your patience!
That webhook workaround is easy enough, many thanks. And yes the repo does belong to a Github organization.
For a workaround, please use this guide to setup an incoming webhook and use the
curl
command to trigger builds: https://docs.aws.amazon.com/amplify/latest/userguide/webhooks.htmlWe are deep diving on this issue. Thank you for your patience!
This solution is working, thanks!
Same for us.
+1 on the issue, the connected repo is private and part of a GitHub organization. Deploys were working normally earlier today until we switched to GH Apps.
Using the webhook workaround for now, but any news on this issue @hloriana?
Thanks!
Same here, builds not being triggered after migration.
Having the same issue, i see the "Migrate to our GitHub App" banner in the console even though i've migrated successfully multiple times. any ETA for the fix? or workaround that doesn't involve webhooks?
Having the same issue here after moving repositories from GitLab to GitHub. Amplify shows the repo as connected sucessfully but does not create the webhook config in GitHub. Clicking the button "Reconnect Repository" actually breaks working project, it will delete the existing webhook but not create new ones.
+1 Exactly the same except my private repo is NOT part of an organization. I'll use the workaround for now. Commenting here mostly just so I'll get alerted when this is fixed.
+1 Also having this issue with a public repository owned by an organization. The configuration has always been the same until I wanted to migrate to the GitHub app. I was already using the manual webhook for release builds, but this is blocking me from having automatic preview deployments for PRs! It seems like there have been several reports of this bug and multiple supposed fixes, what's going on here?
I have it working now, I just had to re connect the repo. There is a button in the "General" section.
I tried that already about five times to no avail, even after manually deleting the github webhook.
+1 on the issue, is there a method to add back the old webhooks to Github? Or what parameters should I put in Github's settings?