Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oarbusi committed Mar 14, 2024
1 parent 06ffcc0 commit 5d9de86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/terraform-compatibility-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
output=$(./scripts/get-terraform-supported-versions.sh)
quoted_output=$(echo "$output" | jq -c .)
echo "supported_versions=$quoted_output" >> "$GITHUB_OUTPUT"
echo "supported_versions=$output" >> "$GITHUB_OUTPUT"
- name: Print HashiCorp Terraform supported versions
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-terraform-supported-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ versions_array=$(printf '%s\n' "${json_array}" | jq -r '.[] | .version')

formatted_output=$(echo "$versions_array" | awk 'BEGIN { ORS = "" } {gsub(/^v/,"",$1); gsub(/\.0$/,".x",$1); printf("%s\"%s\"", (NR==1?"":", "), $1)}' | sed 's/,"/," /g')

echo "[$formatted_output]" | jq -R .
echo "[$formatted_output]" | jq -c .

0 comments on commit 5d9de86

Please sign in to comment.