From 554fc5d9e5069f895b16b85a52439d8dcddb2414 Mon Sep 17 00:00:00 2001 From: Szymon Draszkiewicz <s.draszkiewicz@piwik.pro> Date: Wed, 12 Jun 2024 10:58:16 +0200 Subject: [PATCH] DEVOPS-7869 multiline strings fix --- 1password/get-item-field/action.yaml | 4 +++- 1password/get-kubeconfig/action.yaml | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/1password/get-item-field/action.yaml b/1password/get-item-field/action.yaml index 7341cab..77e980e 100644 --- a/1password/get-item-field/action.yaml +++ b/1password/get-item-field/action.yaml @@ -29,4 +29,6 @@ runs: shell: bash env: OP_SERVICE_ACCOUNT_TOKEN: ${{ inputs.op-sa-token }} - run: echo "field=$(op item get ${{ inputs.op-item }} --vault=${{ inputs.op-vault }} --fields label=${{ inputs.op-field }})" >> $GITHUB_OUTPUT \ No newline at end of file + run: echo "field<<EOF"$'\n'"$(op item get ${{ inputs.op-item }} --vault=${{ inputs.op-vault }} --fields label=${{ inputs.op-field }})"$'\n'EOF >> "$GITHUB_OUTPUT" + + \ No newline at end of file diff --git a/1password/get-kubeconfig/action.yaml b/1password/get-kubeconfig/action.yaml index ddbcf11..56cab40 100644 --- a/1password/get-kubeconfig/action.yaml +++ b/1password/get-kubeconfig/action.yaml @@ -21,7 +21,7 @@ runs: steps: - name: Get Kubeconfig from 1Password id: get-kubeconfig - uses: PiwikPRO/actions/1password/get-item-field@master + uses: PiwikPRO/actions/1password/get-item-field@DEVOPS-7869 with: op-sa-token: ${{ inputs.op-sa-token }} op-vault: ${{ inputs.op-vault }} @@ -31,4 +31,7 @@ runs: - name: Decode kubeconfig id: decode-kubeconfig shell: bash - run: echo "kubeconfig=$(echo '${{ steps.get-kubeconfig.outputs.field }}' | base64 --decode)" >> $GITHUB_OUTPUT \ No newline at end of file + run: echo "kubeconfig<<EOF"$'\n'"$(echo '${{ steps.get-kubeconfig.outputs.field }}' | tr -d "\"" | base64 --decode)"$'\n'EOF >> "$GITHUB_OUTPUT" + + + \ No newline at end of file