Skip to content

Commit f407ae6

Browse files
fix postgres github action using vibe coding (#11409) (#11410)
(cherry picked from commit 6a954e2) Co-authored-by: Kshitij Aranke <[email protected]>
1 parent a5b3850 commit f407ae6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/actions/setup-postgres-macos/action.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ runs:
77
run: |
88
brew install postgresql@16
99
brew link postgresql@16 --force
10-
brew services start postgresql@16
10+
11+
# Add the services tap and ensure PATH is updated
12+
brew tap homebrew/services
13+
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
14+
15+
# Start PostgreSQL using the full command instead of brew services
16+
pg_ctl -D /opt/homebrew/var/postgresql@16 start
17+
1118
echo "Check PostgreSQL service is running"
1219
i=10
1320
COMMAND='pg_isready'
@@ -22,5 +29,6 @@ runs:
2229
sleep 10
2330
((i--))
2431
done
32+
2533
createuser -s postgres
2634
bash ${{ github.action_path }}/setup_db.sh

0 commit comments

Comments
 (0)