Github action No event triggers defined in `on`
·
Answer a question
I have created a pipeline and i want to trigger every time I push on any branch
There is my 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
When i push this on github, I have this error
No event triggers defined in
on

Answers
You can trigger all branches just by using
on: push
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event
Remove - '*'
Your workflow file seems fine. Have you checked all indentation.
更多推荐


所有评论(0)