File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 7979
8080 - name : Generate common-nix.vars.pkr.hcl
8181 run : |
82- # For orioledb versions, we need to handle the version lookup differently
83- if [[ "${{ matrix.version }}" == "orioledb-"* ]]; then
84- MAJOR_VERSION="${{ matrix.version #orioledb-}}"
85- PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'$MAJOR_VERSION'_orioledb"]' ansible/vars.yml)
86- else
87- PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
88- fi
89-
82+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
9083 PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
9184 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
9285 # Ensure there's a newline at the end of the file
You can’t perform that action at this time.
0 commit comments