From b61e612df86f8f7b50a09f78d4edac0624323460 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 30 Aug 2023 00:29:38 +0000 Subject: [PATCH] fix: don't create floating branch from dry runs --- release/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/action.yaml b/release/action.yaml index 09605b5..0dbb47a 100644 --- a/release/action.yaml +++ b/release/action.yaml @@ -46,13 +46,13 @@ runs: dry-run: ${{ inputs.dry-run }} extra-plugins: ${{ inputs.extra-plugins }} - name: Fetch tags - if: steps.release.outputs.new-release-published == 'true' + if: steps.release.outputs.new-release-published == 'true' && inputs.dry-run != 'true' shell: bash run: | git fetch --tags git clean -fd - name: Major branch - if: steps.release.outputs.new-release-published == 'true' + if: steps.release.outputs.new-release-published == 'true' && inputs.dry-run != 'true' uses: open-turo/action-major-release@v1 with: major-version: ${{ steps.release.outputs.new-release-major-version }}