Skip to content

Commit 8dcf196

Browse files
committed
Setup deploy completion hook to clear cache
1 parent ce2458c commit 8dcf196

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,9 @@ jobs:
3939
- name: clear build
4040
run: |
4141
sudo chmod -R 777 ./build
42-
rm -rf ./build
42+
rm -rf ./build
43+
- name: Deploy Completion Webhook
44+
uses: joelwmale/webhook-action@master
45+
env:
46+
WEBHOOK_URL: ${{ secrets.SSR_COMPLETE_WEBHOOK }}
47+
data: "{'deployment': 'finished'}"

deploy-hook/handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const axios = require('axios');
22
const Redis = require('ioredis');
33

4-
async function initiateGithubAction(body: any) {
4+
async function initiateGithubAction(body) {
55
if (!body) {
66
return {
77
statusCode: 400,

0 commit comments

Comments
 (0)