File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ TRAVIS := $(shell echo "$${TRAVIS:-false}")
3
3
PR := $(shell echo "$${TRAVIS_PULL_REQUEST:-false}")
4
4
BRANCH := $(shell echo "$${TRAVIS_BRANCH:-master}")
5
5
GITHUB_ACTIONS := $(shell echo "$${GITHUB_ACTIONS:-false}")
6
- GITHUB_HEAD_REF := $(shell echo "$${GITHUB_HEAD_REF :-false}")
6
+ GITHUB_BASE_REF := $(shell echo "$${GITHUB_BASE_REF :-false}")
7
7
DB := example
8
8
IPYTHON := no
9
9
LOCALES := $(shell .state/env/bin/python -c "from warehouse.i18n import KNOWN_LOCALES; print(' '.join(set(KNOWN_LOCALES) -{'en'}))")
@@ -142,14 +142,20 @@ deps: .state/env/pyvenv.cfg
142
142
$(BINDIR ) /pip check
143
143
144
144
github-actions-deps :
145
- ifneq ($(GITHUB_HEAD_REF ) , false)
146
- git fetch origin $(GITHUB_HEAD_REF):refs/remotes/origin/$(GITHUB_HEAD_REF)
147
- git diff --name-only $(GITHUB_HEAD_REF) | grep '^requirements/' || exit 0 && $(MAKE) deps
145
+ ifneq ($(GITHUB_BASE_REF ) , false)
146
+ git fetch origin $(GITHUB_BASE_REF):refs/remotes/origin/$(GITHUB_BASE_REF)
147
+ git show-ref
148
+ git show-ref $(GITHUB_BASE_REF)
149
+ git branch
150
+ git diff --name-only $(GITHUB_BASE_REF) | grep '^requirements/' || exit 0 && $(MAKE) deps
148
151
endif
149
152
150
153
travis-deps :
151
154
ifneq ($(PR ) , false)
152
155
git fetch origin $(BRANCH):refs/remotes/origin/$(BRANCH)
156
+ git show-ref
157
+ git show-ref $(BRANCH)
158
+ git branch
153
159
git diff --name-only $(BRANCH) | grep '^requirements/' || exit 0 && $(MAKE) deps
154
160
endif
155
161
You can’t perform that action at this time.
0 commit comments