From cbc0a05ef348a7383ab38666f55a555ceadf4365 Mon Sep 17 00:00:00 2001 From: Eric Ghildyal Date: Tue, 22 Jul 2025 15:54:55 -0400 Subject: [PATCH 1/3] test if for login and run --- .github/workflows/on-push.yml | 2 +- action.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 55bbbae..2243343 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -16,7 +16,7 @@ jobs: - name: Install MultiTool via Action uses: "./" with: - install-only: true + # install-only: true version: "v0.3.0" - name: "Test CLI is installed" diff --git a/action.yml b/action.yml index 876ea75..6fbddd8 100644 --- a/action.yml +++ b/action.yml @@ -52,8 +52,10 @@ runs: - name: Login shell: bash + if: ${{ !inputs.install-only }} run: "multi login --enable-colors=always --email=${{ inputs.email }} --password=${{ inputs.password }}" - name: Run shell: bash + if: ${{ !(inputs.install-only || inputs.dry-run) }} run: "multi run --enable-colors=always" \ No newline at end of file From e3e5290b67c05fcde38d3b0db9a4342c2c883def Mon Sep 17 00:00:00 2001 From: Eric Ghildyal Date: Tue, 22 Jul 2025 15:55:52 -0400 Subject: [PATCH 2/3] test if for login and run --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6fbddd8..e6b9a9f 100644 --- a/action.yml +++ b/action.yml @@ -52,7 +52,7 @@ runs: - name: Login shell: bash - if: ${{ !inputs.install-only }} + if: ${{ inputs.install-only == "false" }} run: "multi login --enable-colors=always --email=${{ inputs.email }} --password=${{ inputs.password }}" - name: Run From acc6436e032d31e88d6cb9166c2b55eb44f0d18a Mon Sep 17 00:00:00 2001 From: Eric Ghildyal Date: Tue, 22 Jul 2025 15:58:19 -0400 Subject: [PATCH 3/3] Convert bools to strings --- .github/workflows/on-push.yml | 6 +++--- action.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 2243343..d67e59e 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -16,7 +16,7 @@ jobs: - name: Install MultiTool via Action uses: "./" with: - # install-only: true + install-only: "true" version: "v0.3.0" - name: "Test CLI is installed" @@ -40,5 +40,5 @@ jobs: with: email: ${{ secrets.MULTITOOL_QA_EMAIL }} password: ${{ secrets.MULTITOOL_QA_PASSWORD }} - dry-run: true - cache-binary: false + dry-run: "true" + cache-binary: "false" diff --git a/action.yml b/action.yml index e6b9a9f..efbf834 100644 --- a/action.yml +++ b/action.yml @@ -15,12 +15,12 @@ inputs: install-only: description: "Whether to install the CLI and then exit" required: false - default: false + default: "false" dry-run: description: "Skips running `multi run`. Useful for testing login credentials." required: false - default: false + default: "false" email: description: "An email address to use when logging in." @@ -33,7 +33,7 @@ inputs: cache-binary: description: "When enabled (default), the `multi` binary will be added to the Actions cache and reused between runs" required: false - default: true + default: "true" outputs: output-string: @@ -52,10 +52,10 @@ runs: - name: Login shell: bash - if: ${{ inputs.install-only == "false" }} + if: ${{ inputs.install-only != 'true' }} run: "multi login --enable-colors=always --email=${{ inputs.email }} --password=${{ inputs.password }}" - name: Run shell: bash - if: ${{ !(inputs.install-only || inputs.dry-run) }} + if: ${{ inputs.install-only != 'true' && inputs.dry-run != 'true' }} run: "multi run --enable-colors=always" \ No newline at end of file