Skip to content

Missing an example of mixed configured and not configured event #25098

Answered by Yanjingzhu
imba-tjd asked this question in Actions
Discussion options

You must be logged in to vote

When you want to trigger a workflow in multiple events with specified options, you can use next syntax:

on:

  pull_request:

    branches:

      - master

  push:

    branches:

      - master

  schedule:

    - cron: “0 0 * * *”

  issues:

     types: [opened, edited, milestoned]

If you don’t want to specific options for one of those events, you can just remove the options , leave : behind the event name.  

on:

  pull_request:

    branches:

      - master

  push:

  schedule:

    - cron: “0 0 * * *”

  issues:

     types: [opened, edited, milestoned]

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants