diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a66342..0f89add 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,7 +121,7 @@ jobs: run: | export CURRENT_VERSION_VALUE=`echo '${{ env.CURRENT_VERSION }}' | sed -E 's/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/'` export NEXT_VERSION_VALUE=`echo '${{ env.NEXT_VERSION }}' | sed -E 's/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/'` - sed 's/${CURRENT_VERSION_VALUE}/${NEXT_VERSION_VALUE}/g' ${{ env.VERSION_FILE }} > ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} + sed "s/${CURRENT_VERSION_VALUE}/${NEXT_VERSION_VALUE}/g" ${{ env.VERSION_FILE }} > ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} rm ${{ env.VERSION_FILE }} mv ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} ${{ env.VERSION_FILE }} git add ${{ env.VERSION_FILE }} diff --git a/tests/logs/test_rp_file.py b/tests/logs/test_rp_file.py index 1ec6055..2e2fa85 100644 --- a/tests/logs/test_rp_file.py +++ b/tests/logs/test_rp_file.py @@ -17,7 +17,7 @@ from reportportal_client.core.rp_file import RPFile -@pytest.mark.parametrize(["name"], [[""], [None], [" "]]) +@pytest.mark.parametrize(["name"], [("",), (None,), (" ",)]) def test_rp_file_name_should_not_be_empty(name): file = RPFile(name, b'{"test": true}', "application/json")