From 9a9dece2b24f72f44bbbd9e94af7b10dda4dd1a7 Mon Sep 17 00:00:00 2001 From: PSala Date: Fri, 1 Sep 2023 09:41:12 +0200 Subject: [PATCH] fix setup python 2 --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1171ff0..4ea5e76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,9 +12,14 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python 2.7 - uses: actions/setup-python@v2 - with: - python-version: '2.7' + run: | + sudo apt update + sudo apt install python2 python-pip + sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1 + sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2 + printf '1\n' | sudo update-alternatives --config python + cd /usr/bin + sudo ln -s /usr/bin/pip2 ./pip - name: Get tag id: tag uses: dawidd6/action-get-tag@v1