File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ You can't point strapi webhooks to the [repository dispatch event endpoint](http
14
14
15
15
## Usage
16
16
17
- Ensure your GitHub Actions workflow file handles the "repository_dispatch" event with your custom type:
17
+ 1 . Ensure your GitHub Actions workflow file handles the "repository_dispatch" event with your custom type:
18
18
19
19
``` yml
20
20
name : Deploy
23
23
types : [strapi_updated]
24
24
` ` `
25
25
26
- Deploy the service to your server, for example:
26
+ 2. Create a GitHub Personal access token with ` repo` scope
27
+
28
+ 3. Deploy the service to your server, for example :
27
29
28
30
` ` ` bash
29
31
docker run --publish 5000:5000 --env GITHUB_TOKEN=YOURTOKEN ghcr.io/badsyntax/strapi-webhook-actions-proxy:latest
30
32
` ` `
31
33
32
- Create a new Webhook in strapi that points to the service with the following query params:
34
+ 4. Create a new Webhook in strapi that points to the service with the following query params :
33
35
34
36
- `event_type` : Any string. This value must match the `repository_dispatch` type specified in your GitHub Actions workflow file.
35
37
- `repo` : GitHub `username/repo`
You can’t perform that action at this time.
0 commit comments