Skip to content

Commit 17d9fd7

Browse files
authored
Merge pull request #257 from github/reggi/fix-unchecked-sticky
Fixes unchecked sticky
2 parents f9e741b + 86aef87 commit 17d9fd7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/index.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/functions/post-deploy.js

+3-3
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)