File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export namespace Action {
8
8
await Util . saveAppTokenToSecret ( token )
9
9
core . setSecret ( token )
10
10
core . setOutput ( 'token' , token )
11
- core . info ( 'Token generated successfully !' )
11
+ core . info ( 'Token generated!' )
12
12
} catch ( e ) {
13
13
core . error ( e )
14
14
core . setFailed ( e . message )
@@ -18,6 +18,7 @@ export namespace Action {
18
18
export async function cleanup ( ) {
19
19
try {
20
20
await Util . removeAppTokenFromSecret ( )
21
+ core . info ( 'Token cleaned!' )
21
22
} catch ( e ) {
22
23
core . error ( e )
23
24
core . setFailed ( e . message )
Original file line number Diff line number Diff line change 1
1
import { State } from './state'
2
2
import { Action } from './action'
3
3
4
- if ( ! State . isPost ( ) ) {
4
+ if ( ! State . isPost ) {
5
5
Action . run ( )
6
6
} else {
7
7
Action . cleanup ( )
Original file line number Diff line number Diff line change 1
1
import * as coreCommand from '@actions/core/lib/command'
2
2
3
3
export namespace State {
4
- export const isPost = ( ) => ! ! process . env [ 'STATE_isPost' ]
4
+ export const isPost = ! ! process . env [ 'STATE_isPost' ]
5
5
6
6
// Publish a variable so that when the POST action runs, it can determine
7
7
// it should run the cleanup logic. This is necessary since we don't have
You can’t perform that action at this time.
0 commit comments