File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 49
49
50
50
- name : Generate common-nix.vars.pkr.hcl
51
51
run : |
52
- PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
52
+ PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
53
53
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
54
54
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
55
55
# Ensure there's a newline at the end of the file
62
62
- name : Generate args
63
63
id : args
64
64
run : |
65
- ARGS=$(nix run nixpkgs#yq -- 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' ansible/vars.yml)
65
+ ARGS=$(sudo nix run nixpkgs#yq -- 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' ansible/vars.yml)
66
66
echo "result<<EOF" >> $GITHUB_OUTPUT
67
67
echo "$ARGS" >> $GITHUB_OUTPUT
68
68
echo "EOF" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments