File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,15 @@ jobs:
61
61
62
62
- name : Set PostgreSQL version environment variable
63
63
run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
64
+
65
+ - name : Install yq
66
+ run : |
67
+ sudo apt-get update
68
+ sudo apt-get install -y yq
64
69
65
70
- name : Generate common-nix.vars.pkr.hcl
66
71
run : |
67
- PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
72
+ PG_VERSION=$(yq '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
68
73
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
69
74
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
70
75
# Ensure there's a newline at the end of the file
You can’t perform that action at this time.
0 commit comments