File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
gitForWindowsUsrBinPath
10
10
} from './src/git'
11
11
import * as fs from 'fs'
12
- import * as coreCommand from '@actions/core/lib/command'
13
12
14
13
const flavor = core . getInput ( 'flavor' )
15
14
const architecture = core . getInput ( 'architecture' )
@@ -252,16 +251,16 @@ function cleanup(): void {
252
251
/**
253
252
* Indicates whether the POST action is running
254
253
*/
255
- export const isPost = ! ! process . env [ 'STATE_isPost' ]
254
+ export const isPost = ! ! core . getState ( 'isPost' )
256
255
257
256
if ( ! isPost ) {
258
257
run ( )
259
258
/*
260
259
* Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
261
260
* This is necessary since we don't have a separate entry point.
262
- * Inspired by https://github.com/actions/checkout/blob/v3.0.2 /src/state-helper.ts#L69-L71
261
+ * Inspired by https://github.com/actions/checkout/blob/v3.1.0 /src/state-helper.ts#L56-L60
263
262
*/
264
- coreCommand . issueCommand ( 'save-state' , { name : ' isPost'} , 'true' )
263
+ core . saveState ( ' isPost', 'true' )
265
264
} else {
266
265
// If the POST action is running, we cleanup our artifacts
267
266
cleanup ( )
You can’t perform that action at this time.
0 commit comments