We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422f74b commit 01109dcCopy full SHA for 01109dc
.github/workflows/ami-release-nix.yml
@@ -67,8 +67,11 @@ jobs:
67
68
- name: Generate common-nix.vars.pkr.hcl
69
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
+ PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
+ 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
75
76
- name: Build AMI stage 1
77
env:
0 commit comments