einaregilsson / beanstalk-deploy

GitHub action (and command line script) to deploy apps to Elastic Beanstalk
MIT License
614 stars 133 forks source link

using the CLI tool in github actions #102

Open shmuel-blitz opened 1 year ago

shmuel-blitz commented 1 year ago

Hi thanks for this great tool!

i kind of like the idea of using github actions to run the same scripts in the same way as it would run on my machine. but i can't use the beanstalk-deploy CLI in the same way i use on my machine because of this env var

Screenshot 2023-05-10 at 23 50 45

can we export a CLI only version that will not use the "IS_GITHUB_ACTION" env var ? or add a neutral env var to negate it like EB_CLI_DEPLOY=true

if (IS_GITHUB_ACTION && !EB_CLI_DEPLOY) {
    // do the github actions magic
} else {
    // use normal CLI args
}

I'll be more than glad to do the PR if you like the idea