зеркало из https://github.com/github/lock.git
extra check
This commit is contained in:
Родитель
2463725e22
Коммит
7572ec3929
|
@ -32230,6 +32230,7 @@ async function checkLockFile_checkLockFile(octokit, context, branch) {
|
|||
|
||||
|
||||
|
||||
|
||||
// Helper function for checking if a deployment lock exists
|
||||
// :param octokit: The octokit client
|
||||
// :param context: The GitHub Actions event context
|
||||
|
@ -32262,7 +32263,7 @@ async function check(octokit, context, environment) {
|
|||
}
|
||||
|
||||
// if a global lock does not exist, check if a lock exists for the environment
|
||||
const lockBranch = `${environment}-${LOCK_METADATA.lockBranchSuffix}`
|
||||
const lockBranch = `${constructValidBranchName(environment)}-${LOCK_METADATA.lockBranchSuffix}`
|
||||
const environmentLockExists = await checkLockFile_checkLockFile(
|
||||
octokit,
|
||||
context,
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,7 @@
|
|||
import * as core from '@actions/core'
|
||||
import {LOCK_METADATA} from './lock-metadata'
|
||||
import {checkLockFile} from './checkLockFile'
|
||||
import {constructValidBranchName} from './valid-branch-name'
|
||||
|
||||
// Helper function for checking if a deployment lock exists
|
||||
// :param octokit: The octokit client
|
||||
|
@ -34,7 +35,7 @@ export async function check(octokit, context, environment) {
|
|||
}
|
||||
|
||||
// if a global lock does not exist, check if a lock exists for the environment
|
||||
const lockBranch = `${environment}-${LOCK_METADATA.lockBranchSuffix}`
|
||||
const lockBranch = `${constructValidBranchName(environment)}-${LOCK_METADATA.lockBranchSuffix}`
|
||||
const environmentLockExists = await checkLockFile(
|
||||
octokit,
|
||||
context,
|
||||
|
|
Загрузка…
Ссылка в новой задаче