Skip to content

Commit

Permalink
fix: remove debian LLVM PPA repo (Linux runners only)
Browse files Browse the repository at this point in the history
resolves #265

Users that expect the PPA to be present _after_ running cpp-linter-action can set the environment variable `KEEP_DEBIAN_LLVM_PPA` to `true`, `on`, or `1`. By default, the PPA is removed.
  • Loading branch information
2bndy5 committed Oct 18, 2024
1 parent e3fcb17 commit 946610c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ runs:
chmod +x $GITHUB_ACTION_PATH/llvm_install.sh
if sudo $GITHUB_ACTION_PATH/llvm_install.sh ${{ inputs.version }}; then
sudo apt-get install -y clang-format-${{ inputs.version }} clang-tidy-${{ inputs.version }}
case "${{ env.KEEP_DEBIAN_LLVM_PPA }}" in
"true" | "on" | "1");;
*)
sudo rm /etc/apt/sources.list.d/*llvm*.list || true
;;
esac
fi
fi
Expand Down

0 comments on commit 946610c

Please sign in to comment.