added path requirement for pubspec.yaml action

This commit is contained in:
Vishal 2022-08-30 17:41:17 +05:30 committed by GitHub
parent e3c9dc3916
commit 1dfa976d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,12 @@
name: Dart
# do a built only on change to pubspec.yaml file with its version change
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
on:
push:
branches:
- 'main/pubspec.yaml'
paths:
- 'pubspec.yaml'
pull_request:
branches: [ "main" ]