diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 97cf436339e..3b7e777c315 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -31,7 +31,7 @@ jobs: uses: apache/skywalking-eyes/header@main - name: Ensure clang-format-10 is available run: | - command -v clang-format-10 > /dev/null || (apt-get update && apt-get install -y clang-format-10) + command -v clang-format-10 > /dev/null || (sudo apt update && sudo apt install -y clang-format-10) - name: Cpplint run: | ln -snf $PWD/.linters/cpp/hooks/pre-commit.sh $PWD/.linters/cpp/pre-commit.sh