Skip to content

Commit

Permalink
DEVOPS-7869 multiline strings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Decard6 committed Jun 12, 2024
1 parent cf3ebd5 commit 554fc5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 1password/get-item-field/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: echo "field<<EOF"$'\n'"$(op item get ${{ inputs.op-item }} --vault=${{ inputs.op-vault }} --fields label=${{ inputs.op-field }})"$'\n'EOF >> "$GITHUB_OUTPUT"


7 changes: 5 additions & 2 deletions 1password/get-kubeconfig/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
run: echo "kubeconfig<<EOF"$'\n'"$(echo '${{ steps.get-kubeconfig.outputs.field }}' | tr -d "\"" | base64 --decode)"$'\n'EOF >> "$GITHUB_OUTPUT"



0 comments on commit 554fc5d

Please sign in to comment.