From 0e647214d31ee23cfe5842715fd3018578577694 Mon Sep 17 00:00:00 2001 From: Matt Blair Date: Mon, 4 Nov 2024 19:57:58 -0800 Subject: [PATCH] Configurable `yq` installation. --- action.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yaml b/action.yaml index 0b4727a..7465cba 100644 --- a/action.yaml +++ b/action.yaml @@ -14,17 +14,17 @@ inputs: required: false description: 'Default AWS region to be used if not specified in a profile.' default: 'us-west-2' + install-yq: + required: false + description: 'Whether to install yq.' + default: 'false' runs: using: "composite" steps: - - name: Install dependencies - shell: bash - run: | - sudo apt-get update - sudo apt-get install -y jq - sudo wget https://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64 -O /usr/local/bin/yq - sudo chmod +x /usr/local/bin/yq + - name: Install yq + if: inputs.install-deps == 'true' + uses: mikefarah/yq@v4.44.3 - name: Get OIDC Token shell: bash