Skip to content

Github Actions only triggers on default branch. #277

Answered by manasesjesus
MerNat asked this question in General
Discussion options

You must be logged in to vote

You need to specify the events and branches that will trigger your action:

on:
  # Set your workflow to run on push events to the develop and all feature branches
  push:
    branches:
      - develop
      - feature/*
  # Set your workflow to run on pull request events that target the main branch
  pull_request:
    branches: 
      - main

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@MerNat
Comment options

@okozachenko1203
Comment options

@annashcherbina
Comment options

@rigazilla
Comment options

@rigazilla
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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