From bd9e149649c53c646be39d1aa1939138741c9a12 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Wed, 21 Aug 2024 02:40:43 +0100 Subject: [PATCH] make `dry-run` also accept bools --- .github/workflows/workflow.yaml | 8 ++++---- action.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 7b5929a..6a21a36 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -54,16 +54,16 @@ jobs: echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }} shell: bash - run: dart --version - if: ${{ matrix.dry-run != 'true' }} + if: ${{ matrix.dry-run != true }} shell: bash - run: flutter --version - if: ${{ matrix.dry-run != 'true' }} + if: ${{ matrix.dry-run != true }} shell: bash - run: "! dart --version" - if: ${{ matrix.dry-run == 'true' }} + if: ${{ matrix.dry-run == true }} shell: bash - run: "! flutter --version" - if: ${{ matrix.dry-run == 'true' }} + if: ${{ matrix.dry-run == true }} shell: bash test_cache: diff --git a/action.yaml b/action.yaml index 73774f4..bc5d07d 100644 --- a/action.yaml +++ b/action.yaml @@ -112,7 +112,7 @@ runs: - name: Run setup script shell: bash - if: ${{ inputs.dry-run != 'true' }} + if: ${{ inputs.dry-run != 'true' && inputs.dry-run != true }} run: | $GITHUB_ACTION_PATH/setup.sh \ -n '${{ steps.flutter-action.outputs.VERSION }}' \