Created
May 31, 2020 21:06
-
-
Save nashmaniac/55e32caa36c3e43f65bc353363c7d7ac to your computer and use it in GitHub Desktop.
Action Trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Each workflow is triggered on some events | |
# will be triggered on push | |
on: push | |
# will be triggered on push and create pull_request | |
on: [push, pull_request] | |
# You can also have some configuration like this | |
on: | |
push: # will be triggered for any push | |
pull_request: | |
types: [opened] # will be triggered when a pull request is created | |
issues: | |
types: [opened] # will be triggered when a issue is created | |
issue_comment: | |
types: [deleted] # will be triggered when a comment in a issue is deleted | |
# You can trigger any workflow using schedule too | |
on: | |
schedule: 0 12 * * * # this will be triggered on 12pm (UTC) each day | |
# You can filter out branches and tags too | |
on: | |
push: | |
tags: # will be triggered when v1.0 or v2.0 is pushed. | |
- v1.0 | |
- v2.0 | |
branches: # will be triggered when code is pushed to master or any branch starting with release/ | |
- master | |
- release/* | |
pull_request: | |
branches: # will be triggered when a pull request is submitted to develop or master branch | |
- develop | |
- master | |
# you can also ignore branches and tags to by simply using branches-ignore instead of branches | |
# same goes for tags-ignore in place of tags | |
# you can not use branches-ignore and branches together and same of tags | |
on: | |
push: | |
branches-ignore: | |
- feature/* # will not trigger for any push to feature/ branches | |
tags-ignore: | |
- v1.* # will not trigger any version like v1.1, v1.5, v1.8 | |
# you can find more in here https://help.github.com/en/actions/reference/events-that-trigger-workflows#external-events-repository_dispatch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment