Skip to content

Commit

Permalink
Merge pull request #257 from github/reggi/fix-unchecked-sticky
Browse files Browse the repository at this point in the history
Fixes unchecked sticky
  • Loading branch information
GrantBirki authored Apr 22, 2024
2 parents f9e741b + 86aef87 commit 17d9fd7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/functions/post-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export async function postDeploy(
)
} else {
core.info(nonStickyMsg)
core.debug(`lockData.sticky: ${lockData.sticky}`)
core.debug(`lockData.sticky: ${lockData?.sticky}`)

// remove the lock - use silent mode
await unlock(
Expand Down Expand Up @@ -154,11 +154,11 @@ export async function postDeploy(
core.debug(JSON.stringify(lockData))

// if the lock is sticky, we will NOT remove it
if (lockData.sticky === true) {
if (lockData?.sticky === true) {
core.info(stickyMsg)
} else {
core.info(nonStickyMsg)
core.debug(`lockData.sticky: ${lockData.sticky}`)
core.debug(`lockData.sticky: ${lockData?.sticky}`)

// remove the lock - use silent mode
await unlock(
Expand Down

0 comments on commit 17d9fd7

Please sign in to comment.