Skip to content

Commit d0d4ec3

Browse files
authored
Merge pull request #425 from wasedatime/feat/add-webhook
feat: adding web hooks for forums
2 parents f76867f + 5c1a08b commit d0d4ec3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,35 @@ jobs:
1111
if: github.event.release.prerelease == true
1212
strategy:
1313
matrix:
14-
microapps: ["WEBHOOK_ROOT_DEV", "WEBHOOK_SYLLABUS_DEV", "WEBHOOK_CAMPUS_DEV", "WEBHOOK_FEEDS_DEV"]
14+
microapps:
15+
[
16+
"WEBHOOK_ROOT_DEV",
17+
"WEBHOOK_SYLLABUS_DEV",
18+
"WEBHOOK_CAMPUS_DEV",
19+
"WEBHOOK_FEEDS_DEV",
20+
"WEBHOOK_FORUMS_DEV",
21+
]
1522
env:
1623
url: ${{ secrets[matrix.microapps] }}
1724
steps:
1825
- name: Deploy staging
19-
run:
20-
curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
26+
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
2127

2228
build-prod:
2329
runs-on: ubuntu-latest
2430
if: github.event.release.prerelease != true
2531
strategy:
2632
matrix:
27-
microapps: ["WEBHOOK_ROOT_PROD", "WEBHOOK_SYLLABUS_PROD", "WEBHOOK_CAMPUS_PROD", "WEBHOOK_FEEDS_PROD"]
33+
microapps:
34+
[
35+
"WEBHOOK_ROOT_PROD",
36+
"WEBHOOK_SYLLABUS_PROD",
37+
"WEBHOOK_CAMPUS_PROD",
38+
"WEBHOOK_FEEDS_PROD",
39+
"WEBHOOK_FORUMS_PROD",
40+
]
2841
env:
2942
url: ${{ secrets[matrix.microapps] }}
3043
steps:
3144
- name: Deploy production
32-
run:
33-
curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
45+
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"

0 commit comments

Comments
 (0)