在存储库中未检测到GitHub Actions工作流

时间:2020-03-08 16:18:24

标签: github dockerfile github-actions

我正在尝试通过遵循此tutorial

来使用GitHub Actions将docker映像构建并推送到Amazon ECR

我正在尝试为此repo设置GitHub Action,因此我在.github/workflows目录中创建了一个新的workflow

DockerFile 已成功创建和构建。

enter image description here

enter image description here

现在,在创建build.yml并将其提交到master分支之后,当我转到存储库中的"Actions"选项卡时,将不显示任何工作流程。

enter image description here

我认为.yml file中可能存在问题,但是看不到任何错误。

有人知道出什么问题吗?

1 个答案:

答案 0 :(得分:1)

  push:
    paths:
    - app/**

如何删除此行?我看到您没有app/目录。详细了解:https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#excluding-paths