Skip to content

Commit

Permalink
fixes is_post logiv
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Feb 14, 2024
1 parent 8143e96 commit 789362a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions dist/index.js

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

11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ const { run } = require('./main')
const { summary } = require('./summary')
const core = require('@actions/core')

if (!!core.getState('isPost') === true) {
run()
}
// Post
else {
const flag = !!core.getState('isPost')

if (flag) {
// Post
summary()
} else {
run()
}

0 comments on commit 789362a

Please sign in to comment.