Skip to content

Commit

Permalink
fix: Only install podman from opensuse repo if Ubuntu is 22.04 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder authored Oct 14, 2024
1 parent f12572d commit 5fc9194
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fc9194

Please sign in to comment.