From 6ecc42fde5ff142357089770669df964925f5867 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 00:17:25 -0700 Subject: [PATCH] [TEST] Initial switch to elysium-actions --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4a950bf..f7d0566 100644 --- a/action.yml +++ b/action.yml @@ -22,11 +22,15 @@ inputs: runs: using: 'composite' steps: + - name: Install JQ + shell: bash + run: | + curl https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 >> ./jq - name: Fetch secrets from Infisical and add them to the environment shell: bash run: | curl "${{ inputs.api-url }}/api/v3/secrets/raw?environment=${{ inputs.environment }}&secretPath=${{ inputs.secret-path }}&workspaceId=${{ inputs.workspace-id }}" \ --header "Authorization: Bearer ${{ inputs.infisical-token }}" \ - | jq -r '.secrets[] | "\(.secretKey)=\(.secretValue)"' > $GITHUB_ENV + | ./jq -r '.secrets[] | "\(.secretKey)=\(.secretValue)"' > $GITHUB_ENV - shell: bash run: echo "Secrets added to environment!". \ No newline at end of file