From a9b2f9f45b3a4726121a5f4dba65b42828f57b27 Mon Sep 17 00:00:00 2001 From: Fabian Locker Date: Thu, 7 Nov 2024 16:21:13 +0100 Subject: [PATCH] chore: show lock ID --- package.json | 8 ++++---- src/main.ts | 4 ++-- src/wait.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 14590e9..7e7ff53 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/main.ts b/src/main.ts index 4c41cd7..3b406e0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,11 +27,11 @@ export async function run(): Promise { 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 diff --git a/src/wait.ts b/src/wait.ts index c53e310..7ac99b9 100644 --- a/src/wait.ts +++ b/src/wait.ts @@ -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(() => {