Skip to content

Commit 0b2c35e

Browse files
authored
Fixes unchecked sticky
1 parent f9e741b commit 0b2c35e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/functions/post-deploy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export async function postDeploy(
110110
)
111111
} else {
112112
core.info(nonStickyMsg)
113-
core.debug(`lockData.sticky: ${lockData.sticky}`)
113+
core.debug(`lockData.sticky: ${lockData?.sticky}`)
114114

115115
// remove the lock - use silent mode
116116
await unlock(
@@ -154,11 +154,11 @@ export async function postDeploy(
154154
core.debug(JSON.stringify(lockData))
155155

156156
// if the lock is sticky, we will NOT remove it
157-
if (lockData.sticky === true) {
157+
if (lockData?.sticky === true) {
158158
core.info(stickyMsg)
159159
} else {
160160
core.info(nonStickyMsg)
161-
core.debug(`lockData.sticky: ${lockData.sticky}`)
161+
core.debug(`lockData.sticky: ${lockData?.sticky}`)
162162

163163
// remove the lock - use silent mode
164164
await unlock(

0 commit comments

Comments
 (0)