Skip to content

Push Trigger

A push is used to trigger a workflow when a push occurs to a given branch or tag

Parameters

branches

Branches that will trigger this

branches-ignore

Branches that will NOT trigger this

tags

Tags that will trigger this

tags-ignore

Tags that will NOT trigger this

paths

Paths that will trigger this

paths-ignore

Paths that will NOT trigger this

Code

Branches

on:
  push:
    branches:
      - main

Tags

on:
  push:
    tags:
      - v1.**

Paths

on:
  push:
    paths:
      - '**.js'