From 5fc919404609cec4aae8d4b86809cef2ba84bf36 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Mon, 14 Oct 2024 12:13:23 -0400 Subject: [PATCH] fix: Only install podman from opensuse repo if Ubuntu is 22.04 (#59) --- action.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4475c59..49fdc94 100644 --- a/action.yml +++ b/action.yml @@ -96,10 +96,17 @@ runs: driver: docker-container cache-binary: ${{ inputs.use_cache }} - # Installs the latest version of Podman + - name: Get Ubuntu version + id: ubuntu_version + shell: bash + run: | + VERSION=$(awk -F= '/^VERSION_ID=/ {gsub(/"/, "", $2); print $2}' /etc/os-release) + echo "Ubuntu version is $VERSION" + echo "version=$VERSION" >> $GITHUB_OUTPUT + # that is compatible with BlueBuild - name: Setup Podman - if: ${{ inputs.squash == 'true' }} + if: ${{ inputs.squash == 'true' && steps.ubuntu_version.outputs.version == '22.04' }} shell: bash run: | # from https://askubuntu.com/questions/1414446/whats-the-recommended-way-of-installing-podman-4-in-ubuntu-22-04