GitHub动作:没有事件发生,工作流程正在运行吗?

时间:2020-02-01 18:34:40

标签: github workflow continuous-deployment github-actions

我已将workflow启发的https://henry.wang/2019/12/05/arm-dockerhub.html添加到我的存储库中
该存储库是公开的,因此您可以看到“操作”标签here

文件中有拼写错误: workflow failed

所以我修复了它,并pushed the fix。但是,没有新的事件出现:如上所示,只有先前的“失败”事件。

这是否意味着工作流程正在运行并且没有终止,或者这意味着工作流程尚未启动?
如果没有开始,那我做错了什么?

2 个答案:

答案 0 :(得分:0)

好,我只是选择了错误的分支。

更改工作流程文件为

on:
  push:
    branches:
      - master
# ...

on:
  push:
    branches:
      - auto-build
# ...

答案 1 :(得分:0)

这适用于所有分支:

on: [push]

您可以在官方文档中找到更多信息 https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#on

# Example: Using a list of events
# Triggers the workflow on push or pull request events
on: [push, pull_request]