Skip to content

Commit

Permalink
Use proper method to retrieve state
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Dec 12, 2023
1 parent 01304ce commit eea653e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function post(inputs: InputsArtifacts): Promise<void> {
}

const inputs = getInputs()
const IsPost = !!process.env['STATE_isPost']
const IsPost = !!core.getState('isPost')

// Main
if (!IsPost) {
Expand Down

0 comments on commit eea653e

Please sign in to comment.