Skip to content

Commit 01109dc

Browse files
committed
fix: newline extra quotes
1 parent 422f74b commit 01109dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ jobs:
6767

6868
- name: Generate common-nix.vars.pkr.hcl
6969
run: |
70-
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
71-
echo "postgres-version = \"$PG_VERSION\"" > common-nix.vars.pkr.hcl
70+
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
71+
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
72+
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
73+
# Ensure there's a newline at the end of the file
74+
echo "" >> common-nix.vars.pkr.hcl
7275
7376
- name: Build AMI stage 1
7477
env:

0 commit comments

Comments
 (0)