Skip to content

Github Actions only triggers on default branch. #277

Answered by manasesjesus
MerNat asked this question in General

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

You must be logged in to vote
7 replies
@MerNat

@okozachenko1203

@annashcherbina

@rigazilla

@rigazilla

You must be logged in to vote
0 replies

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