@@ -3975,59 +3975,59 @@ var __importStar = (this && this.__importStar) || function (mod) {
3975
3975
};
3976
3976
Object.defineProperty(exports, "__esModule", { value: true });
3977
3977
exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
3978
- const coreCommand = __importStar(__webpack_require__(431 ));
3978
+ const core = __importStar(__webpack_require__(470 ));
3979
3979
/**
3980
3980
* Indicates whether the POST action is running
3981
3981
*/
3982
- exports.IsPost = !!process.env['STATE_isPost'] ;
3982
+ exports.IsPost = !!core.getState('isPost') ;
3983
3983
/**
3984
3984
* The repository path for the POST action. The value is empty during the MAIN action.
3985
3985
*/
3986
- exports.RepositoryPath = process.env['STATE_repositoryPath'] || '' ;
3986
+ exports.RepositoryPath = core.getState('repositoryPath') ;
3987
3987
/**
3988
3988
* The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
3989
3989
*/
3990
- exports.PostSetSafeDirectory = process.env['STATE_setSafeDirectory'] === 'true';
3990
+ exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
3991
3991
/**
3992
3992
* The SSH key path for the POST action. The value is empty during the MAIN action.
3993
3993
*/
3994
- exports.SshKeyPath = process.env['STATE_sshKeyPath'] || '' ;
3994
+ exports.SshKeyPath = core.getState('sshKeyPath') ;
3995
3995
/**
3996
3996
* The SSH known hosts path for the POST action. The value is empty during the MAIN action.
3997
3997
*/
3998
- exports.SshKnownHostsPath = process.env['STATE_sshKnownHostsPath'] || '' ;
3998
+ exports.SshKnownHostsPath = core.getState('sshKnownHostsPath') ;
3999
3999
/**
4000
4000
* Save the repository path so the POST action can retrieve the value.
4001
4001
*/
4002
4002
function setRepositoryPath(repositoryPath) {
4003
- coreCommand.issueCommand('save-state', { name: ' repositoryPath' } , repositoryPath);
4003
+ core.saveState(' repositoryPath', repositoryPath);
4004
4004
}
4005
4005
exports.setRepositoryPath = setRepositoryPath;
4006
4006
/**
4007
4007
* Save the SSH key path so the POST action can retrieve the value.
4008
4008
*/
4009
4009
function setSshKeyPath(sshKeyPath) {
4010
- coreCommand.issueCommand('save-state', { name: ' sshKeyPath' } , sshKeyPath);
4010
+ core.saveState(' sshKeyPath', sshKeyPath);
4011
4011
}
4012
4012
exports.setSshKeyPath = setSshKeyPath;
4013
4013
/**
4014
4014
* Save the SSH known hosts path so the POST action can retrieve the value.
4015
4015
*/
4016
4016
function setSshKnownHostsPath(sshKnownHostsPath) {
4017
- coreCommand.issueCommand('save-state', { name: ' sshKnownHostsPath' } , sshKnownHostsPath);
4017
+ core.saveState(' sshKnownHostsPath', sshKnownHostsPath);
4018
4018
}
4019
4019
exports.setSshKnownHostsPath = setSshKnownHostsPath;
4020
4020
/**
4021
4021
* Save the sef-safe-directory input so the POST action can retrieve the value.
4022
4022
*/
4023
4023
function setSafeDirectory() {
4024
- coreCommand.issueCommand('save-state', { name: ' setSafeDirectory' } , 'true');
4024
+ core.saveState(' setSafeDirectory', 'true');
4025
4025
}
4026
4026
exports.setSafeDirectory = setSafeDirectory;
4027
4027
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
4028
4028
// This is necessary since we don't have a separate entry point.
4029
4029
if (!exports.IsPost) {
4030
- coreCommand.issueCommand('save-state', { name: ' isPost' } , 'true');
4030
+ core.saveState(' isPost', 'true');
4031
4031
}
4032
4032
4033
4033
0 commit comments