File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1818 - name : Set PostgreSQL versions
1919 id : set-versions
2020 run : |
21- VERSIONS=$(yq '.postgres_major[]' ansible/vars.yml | jq -R -s -c 'split("\n")[:-1]')
21+ VERSIONS=$(nix run nixpkgs# yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c 'split("\n")[:-1]')
2222 echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
2323
2424 test-ami-nix :
@@ -62,13 +62,10 @@ jobs:
6262 - name : Set PostgreSQL version environment variable
6363 run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
6464
65- - name : Install yq & jq
66- run : |
67- nix profile install nixpkgs#yq nixpkgs#jq
6865
6966 - name : Generate common-nix.vars.pkr.hcl
7067 run : |
71- PG_VERSION=$(yq '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
68+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
7269 PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
7370 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
7471 # Ensure there's a newline at the end of the file
You can’t perform that action at this time.
0 commit comments