Skip to content

Github Actions only triggers on default branch. #160572

Answered by manasesjesus
MerNat asked this question in Actions

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: 0 comments 10 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
Actions Checkout For discussions related to the actions/checkout action in GitHub workflows Transferred These are discussions that have recently Transferred from another org/repo
7 participants