From dc9428abdd666d78686e0e434c52949f768c2683 Mon Sep 17 00:00:00 2001 From: andreaangiolillo Date: Thu, 25 Apr 2024 18:16:38 +0100 Subject: [PATCH] Update release-cli.yml --- .github/workflows/release-cli.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index e449d2b9c..9d7274a48 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -16,26 +16,12 @@ on: default: 'false' jobs: - release-config: - runs-on: ubuntu-latest - outputs: - creates_new_tag: ${{ steps.evaluate_inputs.outputs.creates_new_tag }} - runs_tests: ${{ steps.evaluate_inputs.outputs.runs_tests }} - steps: - - id: evaluate_inputs - run: | - { - echo "creates_new_tag=$(if [ '${{ inputs.use_existing_tag }}' = 'true' ]; then echo 'false'; else echo 'true'; fi)" - echo "runs_tests=$(if [ '${{ inputs.skip_tests }}' = 'true' ]; then echo 'false'; else echo 'true'; fi)" - } >> "$GITHUB_OUTPUT" - create-tag: runs-on: ubuntu-latest needs: [ release-config ] if: >- !cancelled() - && !contains(needs.*.result, 'failure') - && needs.release-config.outputs.creates_new_tag == 'true' + && inputs.use_existing_tag == 'false' steps: - name: Validation of version format run: | @@ -63,11 +49,11 @@ jobs: body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} run-tests: - needs: [ release-config, create-tag ] + needs: [ create-tag ] if: >- !cancelled() && !contains(needs.*.result, 'failure') - && needs.release-config.outputs.runs_tests == 'true' + && inputs.skip_tests == 'false' secrets: inherit uses: ./.github/workflows/code-health-tools.yml