Skip to content

Commit 8cfa69c

Browse files
committed
fix: src yq from apt
1 parent e510e12 commit 8cfa69c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/testinfra-nix.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ jobs:
6161

6262
- name: Set PostgreSQL version environment variable
6363
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
6469
6570
- name: Generate common-nix.vars.pkr.hcl
6671
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)
6873
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
6974
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
7075
# Ensure there's a newline at the end of the file

0 commit comments

Comments
 (0)