Skip to content

Commit

Permalink
chore: show lock ID
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiLo22 committed Nov 7, 2024
1 parent 67fa247 commit a9b2f9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "typescript-action",
"description": "Givve Automatic Deployment",
"version": "v0.0.18",
"version": "v0.1.0",
"author": "PL Gutscheinsysteme GmbH",
"private": true,
"homepage": "https://github.com/actions/typescript-action",
"homepage": "https://github.com/givve/github_deployment_action",
"repository": {
"type": "git",
"url": "git+https://github.com/actions/typescript-action.git"
"url": "git+https://github.com/givve/github_deployment_action.git"
},
"bugs": {
"url": "https://github.com/actions/typescript-action/issues"
"url": "https://github.com/givve/github_deployment_action"
},
"keywords": [
"actions",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export async function run(): Promise<void> {
const lock = await getLock()
// No lock, we need to lock deployment
if (!lock) {
const { error } = await setLock(component)
const { result } = await setLock(component)
}

// Manual deployment, so deployment is not permitted
core.setFailed('Manual deployment lock active!')
core.setFailed('Manual deployment lock active! ID to unlock: ' + lock.id)
}
} catch (error) {
// Fail the workflow run if an error occurs
Expand Down
2 changes: 1 addition & 1 deletion src/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function check(resolve: any, reject: any) {
} else {
if (lock.purpose === 'manual deployment lock') {
// Some other deployment is running, so we wait
core.setFailed('Manual deployment lock active!')
core.setFailed('Manual deployment lock active! ID to unlock: ' + lock.id)
reject('Locked')
} else {
setTimeout(() => {
Expand Down

0 comments on commit a9b2f9f

Please sign in to comment.