Skip to content

Commit 7d577a7

Browse files
committed
fix
1 parent d8951b4 commit 7d577a7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/pg_dump.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Backup PostgreSQL Database
22

33
on:
44
schedule:
5-
- cron: "0 19 * * *" # 毎日午前2時に実行
6-
pull_request: # PR 作成や更新時にトリガー
5+
- cron: "0 19 * * *"
6+
pull_request:
77
branches:
88
- main
9-
push: # 通常の push 時にもトリガー
9+
push:
1010
branches:
1111
- main
1212

@@ -18,9 +18,14 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v3
2020

21-
- name: Install PostgreSQL Client
21+
- name: Add PostgreSQL Repository
2222
run: |
23+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
24+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
2325
sudo apt-get update
26+
27+
- name: Install PostgreSQL Client
28+
run: |
2429
sudo apt-get install -y postgresql-client-15
2530
2631
- name: Backup database

0 commit comments

Comments
 (0)