我创建了一个管道,我想在每次推送任何分支时触发
有我的default.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
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event https://docs.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event
消除 - '*'
您的工作流程文件看起来不错。你检查过所有的缩进吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)