-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into adomani/capture_exc…
…eptions
- Loading branch information
Showing
683 changed files
with
4,259 additions
and
2,011 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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -25,6 +25,9 @@ jobs: | |
echo "$HOME/.elan/bin" >> "${GITHUB_PATH}" | ||
- uses: actions/checkout@v4 | ||
with: | ||
## fetch the whole repository, as we want to push to it later | ||
fetch-depth: 0 | ||
|
||
- name: print lean and lake versions | ||
run: | | ||
|
@@ -61,7 +64,7 @@ jobs: | |
- name: configure git setup | ||
run: | | ||
git remote add origin-bot "https://leanprover-community-bot:${{ secrets.UPDATE_NOLINTS_TOKEN }}@github.com/leanprover-community/mathlib.git" | ||
git remote add origin-bot "https://leanprover-community-bot:${{ secrets.UPDATE_NOLINTS_TOKEN }}@github.com/leanprover-community/mathlib4.git" | ||
git config user.email "[email protected]" | ||
git config user.name "leanprover-community-bot" | ||
|
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 |
---|---|---|
|
@@ -19,25 +19,39 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: "${{ secrets.NIGHTLY_TESTING }}" | ||
token: "${{ secrets.UPDATE_DEPENDENCIES_TOKEN }}" | ||
|
||
- name: Get PR and labels | ||
id: PR # all the steps below are skipped if 'ready-to-merge' is in the list of labels found here | ||
uses: 8BitJonny/[email protected] | ||
# TODO: this may not work properly if the same commit is pushed to multiple branches: | ||
# https://github.com/8BitJonny/gh-get-current-pr/issues/8 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# Only return if PR is still open | ||
filterOutClosed: true | ||
|
||
- name: Configure Git User | ||
if: ${{ !contains(steps.PR.outputs.pr_labels, 'ready-to-merge') }} | ||
run: | | ||
git config user.name "leanprover-community-mathlib4-bot" | ||
git config user.email "[email protected]" | ||
- name: Update dependencies | ||
if: ${{ !contains(steps.PR.outputs.pr_labels, 'ready-to-merge') }} | ||
run: lake update | ||
|
||
- name: Generate PR title | ||
if: ${{ !contains(steps.PR.outputs.pr_labels, 'ready-to-merge') }} | ||
run: | | ||
echo "timestamp=$(date -u +"%Y-%m-%d-%H-%M")" >> "$GITHUB_ENV" | ||
echo "pr_title=chore: update Mathlib dependencies $(date -u +"%Y-%m-%d")" >> "$GITHUB_ENV" | ||
- name: Create Pull Request | ||
if: ${{ !contains(steps.PR.outputs.pr_labels, 'ready-to-merge') }} | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: "${{ secrets.NIGHTLY_TESTING }}" | ||
token: "${{ secrets.UPDATE_DEPENDENCIES_TOKEN }}" | ||
commit-message: "chore: update Mathlib dependencies ${{ env.timestamp }}" | ||
# this branch is referenced in update_dependencies_zulip.yml | ||
branch: "update-dependencies-bot-use-only" | ||
|
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
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
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
Oops, something went wrong.