Skip to content

Elastic Deploy Runner: Error: main is not a supported Git Ref for running apply #228

Answered by zackproser
zackproser asked this question in Help
Discussion options

You must be logged in to vote

For this particular case, the issue is indeed that the deploy runner is configured to expect master based on the form input, and there is a bug in our scripts where it generated the GitHub Actions expecting main.

My recommendation would be to switch your main git branch to using master by creating a new branch off of main and pushing that as the default branch for your repo. Once you do that, you will want to make sure the GitHub Actions code is updated to use master instead of main.

Alternatively, if you wish to continue using main, you can update the allowed apply refs from master to main for the ecs-deploy-runner here: https://github.com/gruntwork-clients/infrastructure-live-<your-comp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zackproser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment