Skip to content

Commit

Permalink
echo again
Browse files Browse the repository at this point in the history
  • Loading branch information
italopessoa committed Sep 17, 2024
1 parent cf04fc7 commit 85c92e4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,33 +165,33 @@ jobs:
with:
workspace: ${{ env.TF_WORKSPACE }}

- name: "asdasdasd"
continue-on-error: true
run: |
echo "Latest Run Status: "${{ steps.output.outputs.outputs }}""
# - name: "asdasdasd"
# continue-on-error: true
# run: |
# echo "Latest Run Status: "${{ steps.output.outputs.outputs }}""

- name: "v2"
continue-on-error: true
run: |
vpc_id=$(echo ${{ steps.output.outputs.outputs }} | jq -r '.[] | select(.name == "vpc_id") | .value')
echo "$vpc_id"
# - name: "v2"
# continue-on-error: true
# run: |
# vpc_id=$(echo ${{ steps.output.outputs.outputs }} | jq -r '.[] | select(.name == "vpc_id") | .value')
# echo "$vpc_id"

- name: "v3"
continue-on-error: true
run: |
vpc_id2=$(echo ${{ toJson(steps.output.outputs.outputs) }} | jq -r '.[] | select(.name == "vpc_id") | .value')
echo "$vpc_id2"
- name: "v4"
continue-on-error: true
run: |
echo "{ \"name\": \"John\" }" | jq -r 'select(.name == "John") | .name'
# - name: "v3"
# continue-on-error: true
# run: |
# vpc_id2=$(echo ${{ toJson(steps.output.outputs.outputs) }} | jq -r '.[] | select(.name == "vpc_id") | .value')
# echo "$vpc_id2"

# - name: "v4"
# continue-on-error: true
# run: |
# echo "{ \"name\": \"John\" }" | jq -r 'select(.name == "John") | .name'


- name: "v5"
continue-on-error: true
run: |
echo "vpc_id::$(echo "${{ toJson(steps.output.outputs.outputs) }}" | jq -r '.[] | select(.name == "vpc_id") | .value')"
echo "vpc_id::$(echo \"${{ toJson(steps.output.outputs.outputs) }}\" | jq -r '.[] | select(.name == "vpc_id") | .value')"
echo "${{ toJson(steps.output.outputs.outputs) }}" | jq -r '.[] | select(.name == "cluster") | .value'
echo "${{ toJson(steps.output.outputs.outputs) }}" | jq -r '.[] | select(.name == "host") | .value'
Expand Down

0 comments on commit 85c92e4

Please sign in to comment.