https://pulumi.com logo
#getting-started
Title
# getting-started
s

swift-apple-26877

08/15/2022, 5:07 PM
Hi Anyone know how I can create a stack from GitHub Actions? I can only see commands for "up", "refresh"... No stack creation options 🤔
b

billowy-army-68599

08/15/2022, 5:11 PM
the action will automatically create a stack from an
up
if it doesn’t exist: https://github.com/pulumi/actions/blob/master/src/main.ts#L47
w

worried-rain-74420

08/15/2022, 5:55 PM
Might need to provide the
upsert
option per the README https://github.com/pulumi/actions#configuration
s

swift-apple-26877

08/16/2022, 10:23 AM
Thanks for the ideas Unfortunately neither seem to work 🤔 Using the "up" command throws an error that the stack can't be found
And "upsert" throws an error that it's not an expected command
w

witty-candle-66007

08/22/2022, 3:26 PM
upsert
is it’s own property. So the action would have both
Copy code
command: "up"
upsert: "true"
@swift-apple-26877 ^
s

swift-apple-26877

08/22/2022, 3:33 PM
Worked perfectly! Thanks you so much @witty-candle-66007 💪 And thanks for your suggestions @billowy-army-68599 @worried-rain-74420
w

worried-rain-74420

08/22/2022, 4:05 PM
Any time! 🙂
3 Views