From 2ac45cf6bf3168c23887afde3fa9112cb9eb0fcb Mon Sep 17 00:00:00 2001 From: Ryan Kotzen Date: Wed, 27 Dec 2023 08:16:35 +0200 Subject: [PATCH] fix(skip-ci): updating command and bool parsing --- action.yml | 3 ++- dist/index.js | 2 +- find-successful-workflow.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 31ef2d8..1bea5a2 100644 --- a/action.yml +++ b/action.yml @@ -47,7 +47,8 @@ runs: last_successful_event: ${{ inputs.last-successful-event }} working_directory: ${{ inputs.working-directory }} working_id: ${{ inputs.workflow-id }} - run: node "$GITHUB_ACTION_PATH/dist/index.js" "$gh_token" "$main_branch_name" "$error_on_no_successful_workflow" "$last_successful_event" "$working_directory" "$working_id" + get_last_skip_ci_commit: ${{inputs.get-last-skip-ci-commit}} + run: node "$GITHUB_ACTION_PATH/dist/index.js" "$gh_token" "$main_branch_name" "$error_on_no_successful_workflow" "$last_successful_event" "$working_directory" "$working_id" "$get_last_skip_ci_commit" - name: Log base and head SHAs used for nx affected shell: bash diff --git a/dist/index.js b/dist/index.js index 1b23891..c90be7a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -37867,7 +37867,7 @@ const errorOnNoSuccessfulWorkflow = process.argv[4]; const lastSuccessfulEvent = process.argv[5]; const workingDirectory = process.argv[6]; const workflowId = process.argv[7]; -const getLastSkippedCommitAfterBase = process.argv[8]; +const getLastSkippedCommitAfterBase = process.argv[8] === "true" ? true : false; const defaultWorkingDirectory = "."; const ProxifiedClient = action_1.Octokit.plugin(proxyPlugin); const messagesToSkip = [ diff --git a/find-successful-workflow.ts b/find-successful-workflow.ts index 108874e..92a7029 100644 --- a/find-successful-workflow.ts +++ b/find-successful-workflow.ts @@ -17,7 +17,7 @@ const errorOnNoSuccessfulWorkflow = process.argv[4]; const lastSuccessfulEvent = process.argv[5]; const workingDirectory = process.argv[6]; const workflowId = process.argv[7]; -const getLastSkippedCommitAfterBase = process.argv[8]; +const getLastSkippedCommitAfterBase = process.argv[8] === "true" ? true : false; const defaultWorkingDirectory = "."; const ProxifiedClient = Octokit.plugin(proxyPlugin);