From 2bd6f8b1a8762fd9cda071a49c3c4a554f7d5e0a Mon Sep 17 00:00:00 2001 From: Dhina17 Date: Tue, 6 Jul 2021 00:38:31 +0530 Subject: [PATCH] Change stack while adding heroku remote - Imagine a user created a heroku app through heroku dashboard, default stack of the app will heroku-20. Then he want to deploy the app with our action by building docker images in heroku which demands app stack must be container. With this patch, he can do that easily without need to install heroku cli locally. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2f5bee2..22e6a76 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ const addRemote = ({ app_name, dontautocreate, buildpack, region, team, stack }) try { execSync("heroku git:remote --app " + app_name); console.log("Added git remote heroku"); + execSync("heroku stack:set " + stack); } catch (err) { if (dontautocreate) throw err;