diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d9ae9debc1..80c13f5168 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -198,7 +198,7 @@ jobs: - name: Filter TypeScript files id: filter-files run: | - echo "::set-output name=ts_files::$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ',' '\n' | grep -E '\.(ts|tsx)$' | tr '\n' ' ')" + echo "ts_files=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ',' '\n' | grep -E '\.(ts|tsx)$' | tr '\n' ' ')" >> $GITHUB_OUTPUT shell: bash - name: Run Python script diff --git a/.github/workflows/scripts/eslint_disable_check.py b/.github/workflows/scripts/eslint_disable_check.py index 045b081923..aba5810687 100644 --- a/.github/workflows/scripts/eslint_disable_check.py +++ b/.github/workflows/scripts/eslint_disable_check.py @@ -70,7 +70,9 @@ def check_eslint(files_or_directories): if os.path.isfile(item): # Check a single file if item.endswith((".ts", ".tsx")) and has_eslint_disable(item): - print(f"Error: File {item} contains eslint-disable statements.") + print( + f"Error: File {item} contains eslint-disable statements." + ) eslint_found = True elif os.path.isdir(item): # Recursively check files in a directory @@ -81,7 +83,9 @@ def check_eslint(files_or_directories): if file_name.endswith((".ts", ".tsx")): file_path = os.path.join(root, file_name) if has_eslint_disable(file_path): - print(f"Error: File {file_path} contains eslint-disable statements.") + print( + f"Error: File {file_path} contains eslint-disable statements." + ) eslint_found = True return eslint_found