From 837aeffe7b5a6d309ac2a1915bdf406b08b3312c Mon Sep 17 00:00:00 2001 From: Stefan Fabian Date: Thu, 9 May 2024 16:40:34 +0200 Subject: [PATCH] Use sudo in workflow. --- .github/workflows/lint-and-test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index 88ab9d0..c9af1c1 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - name: Setup run: | - apt-get update && apt-get install -y clang-format libxml2-utils + sudo apt-get update && sudo apt-get install -y clang-format libxml2-utils - name: Lint C++ run: | clang-format -Werror -n -style=file $(find . -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.c' -o -name '*.cc') @@ -39,8 +39,8 @@ jobs: steps: - name: install build tools run: | - apt-get update - apt-get install -y ros-dev-tools + sudo apt-get update + sudo apt-get install -y ros-dev-tools - uses: actions/checkout@v4 with: path: src