File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,18 @@ deps: .state/env/pyvenv.cfg
132
132
github-actions-deps :
133
133
ifneq ($(GITHUB_BASE_REF ) , false)
134
134
git fetch origin $(GITHUB_BASE_REF):refs/remotes/origin/$(GITHUB_BASE_REF)
135
+ # Check that the following diff will exit with 0 or 1
136
+ git diff --name-only FETCH_HEAD || test $? -le 1 || exit 1
137
+ # Make the dependencies if any changed files are requirements files, otherwise exit
135
138
git diff --name-only FETCH_HEAD | grep '^requirements/' || exit 0 && $(MAKE) deps
136
139
endif
137
140
138
141
travis-deps :
139
142
ifneq ($(PR ) , false)
140
143
git fetch origin $(BRANCH):refs/remotes/origin/$(BRANCH)
144
+ # Check that the following diff will exit with 0 or 1
145
+ git diff --name-only $(BRANCH) || test $? -le 1 || exit 1
146
+ # Make the dependencies if any changed files are requirements files, otherwise exit
141
147
git diff --name-only $(BRANCH) | grep '^requirements/' || exit 0 && $(MAKE) deps
142
148
endif
143
149
You can’t perform that action at this time.
0 commit comments