diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 18:38:53 -0500 |
|---|---|---|
| committer | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 18:38:53 -0500 |
| commit | 9e5e773b07b1b2e57e578384132362f710c80e48 (patch) | |
| tree | fcddb81fa10a7cb1f8a10844ea79a16cd0b1f2ae /src/main.ts | |
| parent | 09a881150911e44069569fd834f641fcfbd1a623 (diff) | |
.
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.ts b/src/main.ts index 26da3aa..4702fe0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,8 +3,7 @@ import * as coreCommand from '@actions/core/lib/command' import * as gitSourceProvider from './git-source-provider' import * as inputHelper from './input-helper' import * as path from 'path' - -const cleanupRepositoryPath = process.env['STATE_repositoryPath'] as string +import * as stateHelper from './state-helper' async function run(): Promise<void> { try { @@ -31,14 +30,14 @@ async function run(): Promise<void> { async function cleanup(): Promise<void> { try { - await gitSourceProvider.cleanup(cleanupRepositoryPath) + await gitSourceProvider.cleanup(stateHelper.RepositoryPath) } catch (error) { core.warning(error.message) } } // Main -if (!cleanupRepositoryPath) { +if (!stateHelper.IsPost) { run() } // Post |
