Github 操作 check_run 未被调用
Github actions check_run is not called
我正在玩 github 操作并尝试在其他检查完成时做一些事情。我看到此操作有 0 次运行。
此操作在 master 分支中可用,我正在向 master 开放 PR。
我尝试通过网络钩子捕获事件,并且在那里接收到的事件都很好。为什么我的操作不起作用?
代码如下:
name: on check run
on:
check_run:
types: [ completed, rerequested, completed, requested_action]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: ENV
run: env
- name: check out event
run: cat "$GITHUB_EVENT_PATH"
更新
我也尝试在存储库中进行其他检查(travis ci),该操作仍然没有执行。
更新 2
原来我在寻找我需要的不同活动。我什至将状态与 "check run" 事件混淆了。 Travis ci 在其默认设置中产生了 "status" 事件,"check" api 需要单独启用
我认为问题可能在于 Travis 上的 GitHub 检查 API 支持仅添加到 travis-ci.com。因此,如果您的支票在 travis-ci.org 上 运行,则您需要迁移。
有关公告,请参阅此博客 post。
https://blog.travis-ci.com/2018-05-07-announcing-support-for-github-checks-api-on-travis-ci-com
It is available to private and open source projects using travis-ci.com
As part of our gradual migration to GitHub Apps for our GitHub integration, we’re formally deprecating GitHub Commit Status API updates for repositories on travis-ci.com managed by GitHub Apps. Instead, these repositories will have status updates reported to the GitHub Check Runs API.
我正在玩 github 操作并尝试在其他检查完成时做一些事情。我看到此操作有 0 次运行。 此操作在 master 分支中可用,我正在向 master 开放 PR。
我尝试通过网络钩子捕获事件,并且在那里接收到的事件都很好。为什么我的操作不起作用?
代码如下:
name: on check run
on:
check_run:
types: [ completed, rerequested, completed, requested_action]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: ENV
run: env
- name: check out event
run: cat "$GITHUB_EVENT_PATH"
更新 我也尝试在存储库中进行其他检查(travis ci),该操作仍然没有执行。
更新 2
原来我在寻找我需要的不同活动。我什至将状态与 "check run" 事件混淆了。 Travis ci 在其默认设置中产生了 "status" 事件,"check" api 需要单独启用
我认为问题可能在于 Travis 上的 GitHub 检查 API 支持仅添加到 travis-ci.com。因此,如果您的支票在 travis-ci.org 上 运行,则您需要迁移。
有关公告,请参阅此博客 post。 https://blog.travis-ci.com/2018-05-07-announcing-support-for-github-checks-api-on-travis-ci-com
It is available to private and open source projects using travis-ci.com
As part of our gradual migration to GitHub Apps for our GitHub integration, we’re formally deprecating GitHub Commit Status API updates for repositories on travis-ci.com managed by GitHub Apps. Instead, these repositories will have status updates reported to the GitHub Check Runs API.