File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments