Skip to content

Commit

Permalink
Rename step.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Nov 16, 2022
1 parent 2de8582 commit d48395e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
;
Expand All @@ -527,15 +527,15 @@ 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 }}...
shell: bash
- 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: >-
Expand Down

0 comments on commit d48395e

Please sign in to comment.