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 18
18
- name : Set PostgreSQL versions
19
19
id : set-versions
20
20
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]')
22
22
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
23
23
24
24
test-ami-nix :
@@ -62,13 +62,10 @@ jobs:
62
62
- name : Set PostgreSQL version environment variable
63
63
run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
64
64
65
- - name : Install yq & jq
66
- run : |
67
- nix profile install nixpkgs#yq nixpkgs#jq
68
65
69
66
- name : Generate common-nix.vars.pkr.hcl
70
67
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)
72
69
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
73
70
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
74
71
# Ensure there's a newline at the end of the file
You can’t perform that action at this time.
0 commit comments