'use strict';
import { execSyncCommand } from '../tools/exec.js';
import { folders, files, packagesPath } from '../../../base-repo/app-constants/project-paths.js';
import { cliLogSeparator, cliLogError } from '../../../fd-toolbox/logging/cli-logger.js';
import { npxCommands } from '../constants/npm-commands.js';
import { configureUser, configureCiToken, submoduleUpdate } from '../tools/git.js';

var __defProp=Object['defineProperty'],__name=(_0x1ee261,_0x316846)=>__defProp(_0x1ee261,'name',{'value':_0x316846,'configurable':!![]});function preActionRequiredCheck(){try{configureUser(),configureCiToken(),cliLogSeparator(),submoduleUpdate(),cliLogSeparator();const _0x2422e8=folders['git']+'/'+folders['commands']+'/'+files['preActionRequiredCheck'],_0x2d13b6=''+packagesPath['packagesInternalCli']+_0x2422e8;execSyncCommand(npxCommands['npxTsx']+'\x20'+_0x2d13b6);}catch(_0x695a31){cliLogError('pre-action-required-check\x20failed,\x20but\x20job\x20will\x20continue\x20without\x20crash:',_0x695a31);}}__name(preActionRequiredCheck,'preActionRequiredCheck');

export { preActionRequiredCheck };
