From e444e5711216a780168a83016ad533093152f380 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 6 Aug 2024 09:29:43 +0200 Subject: [PATCH] fix(releaser): Use '--break-system-packages' only for Ubuntu 24.04. --- releaser/composite/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releaser/composite/action.yml b/releaser/composite/action.yml index 3b7cc58..bc1f180 100644 --- a/releaser/composite/action.yml +++ b/releaser/composite/action.yml @@ -45,7 +45,9 @@ runs: steps: - shell: bash - run: pip install --disable-pip-version-check PyGithub --progress-bar off --break-system-packages + run: | + [ "$(source /etc/os-release && echo $VERSION_ID)" == "24.04" ] && UBUNTU_2404_ARGS='--break-system-packages' || unset UBUNTU_2404_ARGS + pip install --disable-pip-version-check --progress-bar off $UBUNTU_2404_ARGS PyGithub - shell: bash run: '''${{ github.action_path }}/../releaser.py'''