-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: CI looks for nightly-testing-YYYY-MM-DD at Mathlib as either a…
… branch or tag
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ jobs: | |
if [ "$NIGHTLY_SHA" = "$MERGE_BASE_SHA" ]; then | ||
echo "The merge base of this PR coincides with the nightly release" | ||
REMOTE_BRANCHES="$(git ls-remote -h https://github.com/leanprover-community/mathlib4.git nightly-testing-"$MOST_RECENT_NIGHTLY")" | ||
REMOTE_BRANCHES="$(git ls-remote https://github.com/leanprover-community/mathlib4.git nightly-testing-"$MOST_RECENT_NIGHTLY")" | ||
if [[ -n "$REMOTE_BRANCHES" ]]; then | ||
echo "... and Mathlib has a 'nightly-testing-$MOST_RECENT_NIGHTLY' branch." | ||
|
@@ -239,7 +239,7 @@ jobs: | |
git config user.name "leanprover-community-mathlib4-bot" | ||
git config user.email "[email protected]" | ||
if git branch -r | grep -q "nightly-testing-${MOST_RECENT_NIGHTLY}"; then | ||
if git ls-remote --heads --tags origin | grep -q "refs/\(heads\|tags\)/nightly-testing-${MOST_RECENT_NIGHTLY}"; then | ||
BASE="nightly-testing-${MOST_RECENT_NIGHTLY}" | ||
else | ||
echo "This shouldn't be possible: couldn't find a 'nightly-testing-${MOST_RECENT_NIGHTLY}' branch at Mathlib. Falling back to 'nightly-testing'." | ||
|