Skip to content

Commit

Permalink
ci: set github job.step outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 29, 2024
1 parent bf943e7 commit 618c048
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:
working-directory: ${{ matrix.module }}
run: |
if [ $(wc -l <coverage.out) -gt 1 ]; then
echo "coverage_data_exists=true"
echo "coverage_data_exists=true" >> $GITHUB_OUTPUT
else
echo "coverage_data_exists=false"
echo "coverage_data_exists=false" >> $GITHUB_OUTPUT
fi
shell: bash

Expand All @@ -78,7 +78,7 @@ jobs:
if [ "$clean_module_name" == "." ]; then
clean_module_name="happy"
fi
echo "clean_module_name=$clean_module_name" >> $GITHUB_ENV
echo "clean_module_name=$clean_module_name" >> $GITHUB_OUTPUT
- name: Upload coverage
if: steps.check-coverage.outputs.coverage_data_exists == 'true'
Expand Down

0 comments on commit 618c048

Please sign in to comment.