We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed45ebb commit 71315fcCopy full SHA for 71315fc
action.yml
@@ -70,6 +70,18 @@ runs:
70
sudo apt-get install postgresql-$PG_VERSION-postgis-3
71
shell: bash
72
73
+ - name: Check PostgreSQL version (macOS)
74
+ if: runner.os == 'macOS'
75
+ id: pg-version-mac
76
+ shell: bash
77
+ run: |
78
+ # Get major version using psql
79
+ PG_VERSION=$(psql -t -A -c "SELECT split_part(version(), ' ', 2)" '${{ steps.pg.outputs.connection-uri }}' | cut -d. -f1)
80
+ echo "Found PostgreSQL major version: $PG_VERSION"
81
+
82
+ # Output version for next steps
83
+ echo "version=$PG_VERSION" >> $GITHUB_OUTPUT
84
85
- name: Install PostGIS on macOS
86
if: runner.os == 'macOS'
87
0 commit comments