-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimism: Add scheduled CI job to check that the latest geth release …
…has been merged in
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
LATEST_RELEASE=$(curl -s --fail -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/ethereum/go-ethereum/releases \ | ||
| jq -r '(.[] | select(.draft==false) | select(.prerelease==false)).tag_name' | head -n 1) | ||
|
||
echo "Detected latest go-ethereum release as ${LATEST_RELEASE}" | ||
|
||
git remote add upstream https://github.com/ethereum/go-ethereum | ||
git fetch upstream > /dev/null | ||
|
||
if git branch --contains "${LATEST_RELEASE}" 2>&1 | grep -e '^[ *]*optimism$' > /dev/null | ||
then | ||
echo "Up to date with latest release. Great job! 🎉" | ||
else | ||
echo "Release has not been merged" | ||
exit 1 | ||
fi |
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