diff --git a/.github/workflows/workflow-lint-test-python.yml b/.github/workflows/workflow-lint-test-python.yml index 70074a5..7ad4492 100644 --- a/.github/workflows/workflow-lint-test-python.yml +++ b/.github/workflows/workflow-lint-test-python.yml @@ -61,14 +61,14 @@ jobs: - name: Compare coverage with threshold id: compare_values run: | - if [ $(echo "$CURRENTCOVERAGE < $THRESHOLD" | bc) -eq 1 ]; then - echo "::set-output name=coverage_ok::false" + if [ $(echo "$CURRENTCOVERAGE > $THRESHOLD" | bc) -eq 1 ]; then + echo "update_value=true" >> $GITHUB_OUTPUT else - echo "::set-output name=coverage_ok::true" + echo "update_value=false" >> $GITHUB_OUTPUT fi - name: Update file - if: steps.compare_values.outputs.coverage_ok == 'true' + if: steps.compare_values.outputs.update_value == 'true' uses: BoundfoxStudios/action-write-file@v1 with: path: ./coverage_threshold.txt