'master' branch was updated to 'main' (#9045)

This commit is contained in:
Sebastian Rittau
2022-11-01 12:57:57 +01:00
committed by GitHub
parent a7cf6144de
commit 3aaf6b9999
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
name: Run mypy_primer
on:
# Only run on PR, since we diff against master
# Only run on PR, since we diff against main
pull_request:
paths:
- 'stdlib/**'
@@ -41,9 +41,9 @@ jobs:
MYPY_VERSION=$(grep mypy== requirements-tests.txt | cut -d = -f 3)
echo "new commit"
git rev-list --format=%s --max-count=1 $GITHUB_SHA
git checkout -b upstream_master origin/master
git checkout -b upstream_main origin/main
echo "base commit"
git rev-list --format=%s --max-count=1 upstream_master
git rev-list --format=%s --max-count=1 upstream_main
echo ''
cd ..
# fail action if exit code isn't zero or one
@@ -51,7 +51,7 @@ jobs:
mypy_primer \
--new v${MYPY_VERSION} --old v${MYPY_VERSION} \
--custom-typeshed-repo typeshed_to_test \
--new-typeshed $GITHUB_SHA --old-typeshed upstream_master \
--new-typeshed $GITHUB_SHA --old-typeshed upstream_main \
--num-shards 4 --shard-index ${{ matrix.shard-index }} \
--debug \
--output concise \