From e9928a0156fa873f4206c5bf0a34c8707be2d26b Mon Sep 17 00:00:00 2001 From: redat97 Date: Sat, 9 Dec 2023 14:22:47 -0500 Subject: [PATCH] issue #4: change deprecated var assignment --- .github/workflows/workflow-lint-test-python.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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