From f890ae3963d94d5567723ef3813bdbb4ccdbb240 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 21 Sep 2024 18:54:53 -0400 Subject: [PATCH] Simplify pyright version obtention (#295) --- .github/workflows/lint-and-build.yml | 5 +---- README.md | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml index fdae3d02..9b1b9353 100644 --- a/.github/workflows/lint-and-build.yml +++ b/.github/workflows/lint-and-build.yml @@ -81,11 +81,8 @@ jobs: - name: Get pyright version id: pyright_version run: | - PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d ' ') + PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d " '") echo pyright version: "${PYRIGHT_VERSION}" - if [ "$PYRIGHT_VERSION" = "'latest'" ]; then - PYRIGHT_VERSION= - fi echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}" shell: bash - name: Analysing the code with Pyright diff --git a/README.md b/README.md index 5f42ad4a..d8de43e0 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Not a developer? You can still help through the following methods: - - - + - - - -