is there any way within the SST code to be able to...
# help
s
is there any way within the SST code to be able to tell which action is being performed? e.g.
remove
vs
deploy
vs
diff
t
Hm I don't know this off the top of my head but curious what you're trying to do. Skip steps during certain actions?
s
yep, I don’t want it to update the Sentry release hash in SSM unless I’m doing a deploy
t
We have
app.skipBuild
which correlates to uh
let me check
skipBuild
is set to false when it's a
remove
s
that’s useful
since you’re using the same Sentry release in SSM trick, are you just checking
app.skipBuild
?
t
I usually use
app.local
to skip stuff during
sst start
I haven't gotten around to optimizing removes
s
Copy code
// Update Sentry release hash in SSM
    if (app.stage === 'prod') {
      new ssm.StringParameter(this, 'SentryReleaseHash', {
        parameterName: '/global/sentryRelease',
        stringValue: process.env.SENTRY_RELEASE,
      });
    }
that’s what I’ve got currently