From d97a5bddf8848137b12f5c88ec9c34dcf679178d Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 16:16:03 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/action.yaml b/action.yaml index 0930d3f..f6bd68d 100644 --- a/action.yaml +++ b/action.yaml @@ -84,3 +84,25 @@ runs: version_file: ${{ inputs.version_file }} debug: ${{ inputs.debug }} + - name: install podman + if: inputs.build_command == 'podman' || inputs.tag_command == 'podman' + shell: bash + run: | + source "${{ github.action_path }}/../bashlib.sh" + step "Install software" "podman" + + if command -v podman >/dev/null 2>&1; then + success "Already installed" "Podman found" + exit 0 + fi + + check_command apt-get + + apt-get update + + if apt-get -y install podman ; then + success "Success" "Podman installed" + else + error "Install failed" "Could not install Podman" + fi +