Update main.yml

Only run CI workflow on push or PR if firmware source code has changed.
This commit is contained in:
Ben Lye 2020-12-20 19:08:36 +00:00 committed by GitHub
parent 4bc08d22b8
commit 8c6c58f12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,11 +9,15 @@ on:
- '**' - '**'
tags-ignore: tags-ignore:
- '**' - '**'
paths:
- 'Multiprotocol/**'
# Trigger the workflow on pull requests to the master branch # Trigger the workflow on pull requests to the master branch
pull_request: pull_request:
branches: branches:
- master - master
paths:
- 'Multiprotocol/**'
# Triggers the workflow on release creation # Triggers the workflow on release creation
release: release:
@ -21,7 +25,7 @@ on:
- created - created
# Allows the workflow to be triggered manually from the Actions tab # Allows the workflow to be triggered manually from the Actions tab
workflow_dispatch: # workflow_dispatch:
jobs: jobs:
build: build: