File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,19 @@ jobs:
37
37
cd mypy_to_test
38
38
echo "new commit"
39
39
git rev-list --format=%s --max-count=1 $GITHUB_SHA
40
- git checkout -b upstream_master origin/master
40
+
41
+ MERGE_BASE=$(git merge-base $GITHUB_SHA origin/master)
42
+ git checkout -b base_commit $MERGE_BASE
41
43
echo "base commit"
42
- git rev-list --format=%s --max-count=1 upstream_master
44
+ git rev-list --format=%s --max-count=1 base_commit
45
+
43
46
echo ''
44
47
cd ..
45
48
# fail action if exit code isn't zero or one
46
49
(
47
50
mypy_primer \
48
51
--repo mypy_to_test \
49
- --new $GITHUB_SHA --old upstream_master \
52
+ --new $GITHUB_SHA --old base_commit \
50
53
--num-shards 3 --shard-index ${{ matrix.shard-index }} \
51
54
--debug \
52
55
--output concise \
You can’t perform that action at this time.
0 commit comments