From 789362a1fa741b4c6e66616250c508266141bb75 Mon Sep 17 00:00:00 2001 From: Abhishek Anand Date: Wed, 14 Feb 2024 11:40:44 +0530 Subject: [PATCH] fixes is_post logiv --- dist/index.js | 11 ++++++----- src/index.js | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dist/index.js b/dist/index.js index 80254b0..97c50e1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4565,12 +4565,13 @@ const { run } = __nccwpck_require__(713) const { summary } = __nccwpck_require__(259) const core = __nccwpck_require__(186) -if (!!core.getState('isPost') === true) { - run() -} -// Post -else { +const flag = !!core.getState('isPost') + +if (flag) { + // Post summary() +} else { + run() } })(); diff --git a/src/index.js b/src/index.js index 1a802a3..50b0aac 100644 --- a/src/index.js +++ b/src/index.js @@ -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() }