Skip to content

Commit 946610c

Browse files
committed
fix: remove debian LLVM PPA repo (Linux runners only)
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.
1 parent e3fcb17 commit 946610c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ runs:
249249
chmod +x $GITHUB_ACTION_PATH/llvm_install.sh
250250
if sudo $GITHUB_ACTION_PATH/llvm_install.sh ${{ inputs.version }}; then
251251
sudo apt-get install -y clang-format-${{ inputs.version }} clang-tidy-${{ inputs.version }}
252+
case "${{ env.KEEP_DEBIAN_LLVM_PPA }}" in
253+
"true" | "on" | "1");;
254+
*)
255+
sudo rm /etc/apt/sources.list.d/*llvm*.list || true
256+
;;
257+
esac
252258
fi
253259
fi
254260

0 commit comments

Comments
 (0)