github - Github action `on` 中没有定义事件触发器
问题描述
我创建了一个管道,我想在每次推送任何分支时触发
有我的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
消除 - '*'
您的工作流程文件似乎很好。你检查了所有的缩进。
推荐阅读
- javascript - 避免错误 429 请求过多(Steam Web API)
- pattern-matching - elm 中否定 case 语句的语法是什么?
- ios - 从核心数据中获取的数据丢失了一些信息
- mysql - 如何在 SQL 中对产品进行价格比较
- ember.js - 注册测试助手时如何访问 Ember 数据存储?余烬 3.3
- angular - 如何保持 RxJs DRY
- php - functions.php 中的 Wordpress 简码
- windows - 为什么我不能从命令提示符中删除“INetCache”文件夹的内容?
- java - 如何通过按键旋转Java中的2D矩形?
- android - 在不同 Wi-Fi 接入点之间切换时,MultiPath TCP 是否允许连接保持打开状态?