From 6bde514de5ca60606fc4dd8e8418e29844554b81 Mon Sep 17 00:00:00 2001 From: rdubois Date: Tue, 30 Jul 2024 15:56:04 +0200 Subject: [PATCH] fix(deb-build-push-notify): missing binutils dependency DEVOPS-77 --- deb-build-push-notify/action.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/deb-build-push-notify/action.yml b/deb-build-push-notify/action.yml index 7acd178..dcc45e6 100644 --- a/deb-build-push-notify/action.yml +++ b/deb-build-push-notify/action.yml @@ -43,11 +43,21 @@ inputs: runs: using: 'composite' steps: - - name: 'Install curl, dpkg-sig, python3-pip and ruby-dev' - run: sudo apt-get update && sudo apt-get install -y curl dpkg-sig python3-pip ruby-dev + - name: 'Install ar, curl, dpkg-sig, python3-pip and ruby-dev' + run: | + if which ar > /dev/null && which curl > /dev/null && which dpkg-sig > /dev/null && which pip3 > /dev/null && which gem > /dev/null; then + echo "Packages are already installed" + else + sudo apt-get update && sudo apt-get install -y binutils curl dpkg-sig python3-pip ruby-dev + fi shell: bash - name: 'Install fpm' - run: sudo gem install fpm + run: | + if which fpm > /dev/null; then + echo "fpm is already installed" + else + sudo gem install fpm + fi shell: bash - name: 'Install signing key' shell: bash