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

enter image description here

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.

Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐