无法通过 Contenful webhook 触发调度 GitHub API

问题描述 投票:0回答:0

如何使用 Contentful webohook 触发 github 操作?

现在我有这样配置的 webhook:https://prnt.sc/zMUzVP_rkcn3 / https://prnt.sc/TrMSJkxnOAva

这是一个 github 动作

name: Deploy

# Run the workflow when a Contentful webhook is triggered
on:
  repository_dispatch:
    types: [contentful.deploy]

jobs:
  web-deploy:
    runs-on: ubuntu-latest

但是CMS改变后没有任何反应。当我点击https://api.github.com/repos/{owner}/{repo}/dispatches

我得到这样的信息

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest"
}

为什么?一切都是公开的,我还使用工作流生成个人访问令牌,写:packages admin:public_key admin:repo_hook scopes

github github-actions content-management-system webhooks contentful
© www.soinside.com 2019 - 2024. All rights reserved.