Skip to content

Commit 18661bf

Browse files
committed
fix: sudo nix run
1 parent ec022a1 commit 18661bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/testinfra-nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Generate common-nix.vars.pkr.hcl
6767
run: |
68-
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
68+
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
6969
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
7070
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
7171
# Ensure there's a newline at the end of the file

0 commit comments

Comments
 (0)