[TEST] Initial switch to elysium-actions

This commit is contained in:
Dunemask 2024-02-14 00:17:25 -07:00
parent 3c8fd06967
commit 6ecc42fde5

View file

@ -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!".