Skip to content

Commit d4e0431

Browse files
authored
Merge pull request #16 from MbinOrg/handle_repository_dispatch_event
On repository dispatch event (update-docs type).
2 parents f5982ca + c2751c1 commit d4e0431

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
branches:
1010
- main
1111

12-
# Runs every hour
13-
schedule:
14-
- cron: "0 * * * *"
12+
# Runs when a repository_dispatch event with the type 'update-docs' is received
13+
repository_dispatch:
14+
types: [update-docs]
1515

1616
# Allows you to run this workflow manually from the Actions tab
1717
workflow_dispatch:
@@ -36,9 +36,9 @@ jobs:
3636
- name: Checkout
3737
uses: actions/checkout@v4
3838
- name: Setup Node
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v6
4040
with:
41-
node-version: "22"
41+
node-version: "24"
4242
cache: "npm"
4343

4444
- name: Setup PHP
@@ -80,10 +80,11 @@ jobs:
8080
uses: actions/upload-pages-artifact@v3
8181
with:
8282
path: ./build
83+
8384
services:
8485
postgres:
8586
# Docker Hub image
86-
image: postgres:16
87+
image: postgres:18
8788
# Provide the password for postgres
8889
env:
8990
POSTGRES_DB: mbin_test
@@ -96,6 +97,7 @@ jobs:
9697
--health-timeout 5s
9798
--health-retries 5
9899
ports: ["5432:5432"]
100+
99101
valkey:
100102
# Docker Hub image
101103
image: valkey/valkey
@@ -106,6 +108,7 @@ jobs:
106108
--health-timeout 5s
107109
--health-retries 5
108110
ports: ["6379:6379"]
111+
109112
# Deployment job
110113
deploy:
111114
environment:

0 commit comments

Comments
 (0)