From d48395e8ef736d6d3adf108269a4e6c053fb29b9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 16 Nov 2022 22:53:31 +0100 Subject: [PATCH] Rename step. --- action.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index d37ee63..7df4eac 100644 --- a/action.yml +++ b/action.yml @@ -201,10 +201,10 @@ runs: shell: bash - name: Log the next step action - run: echo ▷ Figuring out change detection and coverage + run: echo ▷ Figuring out ansible-test flags shell: bash - - name: Determine change detection and coverage - id: compute-change-detection-coverage + - name: Determine ansible-test flags + id: ansible-test-flags run: | # Compute whether to use change detection and coverage import json @@ -255,21 +255,21 @@ runs: ref: ${{ inputs.git-checkout-ref }} fetch-depth: >- ${{ - steps.compute-change-detection-coverage.outputs.change-detection-arg + steps.ansible-test-flags.outputs.change-detection-arg && '0' || '1' }} - name: Log the next step action if: >- !inputs.collection-src-directory - && steps.compute-change-detection-coverage.outputs.change-detection-arg + && steps.ansible-test-flags.outputs.change-detection-arg run: >- echo ▷ Create branches for change detection shell: bash - name: Create branches for change detection if: >- !inputs.collection-src-directory - && steps.compute-change-detection-coverage.outputs.change-detection-arg + && steps.ansible-test-flags.outputs.change-detection-arg run: | # Create a branch for the current HEAD, which happens to be a merge commit git checkout -b 'pull-request-${{ github.event.pull_request.number }}' @@ -457,8 +457,8 @@ runs: ; ~/.local/bin/ansible-test ${{ inputs.testing-type }} -v --color - ${{ steps.compute-change-detection-coverage.outputs.coverage-arg }} - ${{ steps.compute-change-detection-coverage.outputs.change-detection-arg }} + ${{ steps.ansible-test-flags.outputs.coverage-arg }} + ${{ steps.ansible-test-flags.outputs.change-detection-arg }} ${{ inputs.testing-type == 'sanity' && '--junit' @@ -508,12 +508,12 @@ runs: working-directory: ${{ steps.collection-metadata.outputs.checkout-path }} - name: Log the next step action - if: steps.compute-change-detection-coverage.outputs.coverage-arg != '' + if: steps.ansible-test-flags.outputs.coverage-arg != '' run: >- echo ▷ Generating a coverage report... shell: bash - name: Generate coverage report - if: steps.compute-change-detection-coverage.outputs.coverage-arg != '' + if: steps.ansible-test-flags.outputs.coverage-arg != '' run: >- set -x ; @@ -527,7 +527,7 @@ runs: working-directory: ${{ steps.collection-metadata.outputs.checkout-path }} - name: Log the next step action - if: steps.compute-change-detection-coverage.outputs.coverage-arg != '' + if: steps.ansible-test-flags.outputs.coverage-arg != '' run: >- echo ▷ Sending the coverage data over to https://codecov.io/gh/${{ github.repository }}... @@ -535,7 +535,7 @@ runs: - name: >- Send the coverage data over to https://codecov.io/gh/${{ github.repository }} - if: steps.compute-change-detection-coverage.outputs.coverage-arg != '' + if: steps.ansible-test-flags.outputs.coverage-arg != '' uses: codecov/codecov-action@v3 with: files: >-