Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github操作没有在“on”中定义事件触发器`_Github_Yaml_Pipeline_Github Actions - Fatal编程技术网

Github操作没有在“on”中定义事件触发器`

Github操作没有在“on”中定义事件触发器`,github,yaml,pipeline,github-actions,Github,Yaml,Pipeline,Github Actions,我已经创建了一个管道,我想在每次按下任何分支时触发它 这是我的默认值。yml: name: default on: push: branches: - '*' jobs: build: runs-on: macOS-latest steps: - uses: actions/checkout@v1 - name: CocoaPod Install run: pod install - name: Force

我已经创建了一个管道,我想在每次按下任何分支时触发它

这是我的
默认值。yml

name: default

on:
  push:
    branches:
    - '*'

jobs:
  build:
    runs-on: macOS-latest
    
    steps:
    - uses: actions/checkout@v1
    - name: CocoaPod Install
      run: pod install
    - name: Force xcode version
      run: sudo xcode-select -switch /Applications/Xcode_11.2.1.app
    - name: Build
      run: ./pipelines.sh build
当我把它推到github上时,我有一个错误

在on中未定义事件触发器


只需使用

on: push

删除-“*”


您的工作流文件似乎很好。是否检查了所有缩进。

可能是一次性错误,或者yaml文件中存在缩进问题。我尝试了相同的配置,它工作正常。请您再次尝试推送相同的配置并触发生成。请在:[push]-无分支,无任何。@DannyB可以定义分支。但问题是“每次推送任何分支时我都要触发”。因此:无需定义分支。