Skip to content

Commit

Permalink
chore: new lock id was not returned
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiLo22 committed Nov 18, 2024
1 parent 75e9df0 commit 9c92922
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion 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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-action",
"description": "Givve Automatic Deployment",
"version": "v0.1.2",
"version": "v0.1.3",
"author": "PL Gutscheinsysteme GmbH",
"private": true,
"homepage": "https://github.com/givve/github_deployment_action",
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export async function run(): Promise<void> {
!_.includes(labels, 'auto deploy') &&
_.includes(labels, 'manual deploy')
) {
const lock = await getLock()
let lock = await getLock()
// No lock, we need to lock deployment
if (!lock) {
const { result } = await setLock(component)
lock = result
}

// Manual deployment, so deployment is not permitted
Expand Down

0 comments on commit 9c92922

Please sign in to comment.