Skip to content

Commit 4241cb5

Browse files
committed
chore: not longer need sudo
1 parent 9d7f28c commit 4241cb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
6060
- name: Generate common-nix.vars.pkr.hcl
6161
run: |
62-
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
62+
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
6363
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
6464
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
6565
# Ensure there's a newline at the end of the file
@@ -72,7 +72,7 @@ jobs:
7272
- name: Generate args
7373
id: args
7474
run: |
75-
ARGS=$(sudo nix run nixpkgs#yq -- 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' ansible/vars.yml)
75+
ARGS=$(nix run nixpkgs#yq -- 'to_entries | map(select(.value|type == "!!str")) | map(.key + "=" + .value) | join("\n")' ansible/vars.yml)
7676
echo "result<<EOF" >> $GITHUB_OUTPUT
7777
echo "$ARGS" >> $GITHUB_OUTPUT
7878
echo "EOF" >> $GITHUB_OUTPUT
@@ -81,7 +81,7 @@ jobs:
8181
- name: verify schema.sql is committed
8282
run: |
8383
GIT_SHA=${{github.sha}}
84-
sudo nix run github:supabase/postgres/${GIT_SHA}#dbmate-tool -- --version ${{ env.PGMAJOR }}
84+
nix run github:supabase/postgres/${GIT_SHA}#dbmate-tool -- --version ${{ env.PGMAJOR }}
8585
if ! git diff --exit-code --quiet migrations/schema-${{ env.PGMAJOR }}.sql; then
8686
echo "Detected changes in schema.sql:"
8787
git diff migrations/schema-${{ env.PGMAJOR }}.sql

0 commit comments

Comments
 (0)