Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
583ca63a
Commit
583ca63a
authored
Aug 11, 2021
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
01a3ef98
parent
8deeede0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
merge-upstream.yml
.github/workflows/merge-upstream.yml
+1
-0
merge-upstream.sh
scripts/upgradeable/merge-upstream.sh
+9
-0
No files found.
.github/workflows/merge-upstream.yml
View file @
583ca63a
...
@@ -18,6 +18,7 @@ jobs:
...
@@ -18,6 +18,7 @@ jobs:
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
with
:
with
:
ref
:
patches
fetch-depth
:
0
fetch-depth
:
0
ssh-key
:
${{ secrets.DEPLOY_KEY }}
ssh-key
:
${{ secrets.DEPLOY_KEY }}
-
run
:
bash scripts/upgradeable/git-user-config.sh
-
run
:
bash scripts/upgradeable/git-user-config.sh
...
...
scripts/upgradeable/merge-upstream.sh
View file @
583ca63a
...
@@ -18,5 +18,14 @@ upstream="${input#patched/}"
...
@@ -18,5 +18,14 @@ upstream="${input#patched/}"
branch
=
"patched/
$upstream
"
branch
=
"patched/
$upstream
"
git checkout
"
$branch
"
2>/dev/null
||
git checkout
-b
"
$branch
"
origin/patches
--no-track
git checkout
"
$branch
"
2>/dev/null
||
git checkout
-b
"
$branch
"
origin/patches
--no-track
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
master
merge_base
=
"
$(
git merge-base origin/patches FETCH_HEAD
)
"
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
"
$upstream
"
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
"
$upstream
"
# Check that patches is not ahead of the upstream branch we're merging.
if
!
git merge-base
--is-ancestor
"
$merge_base
"
FETCH_HEAD
;
then
echo
"The patches branch is ahead of
$upstream
"
>
&2
exit
1
fi
git merge origin/patches FETCH_HEAD
-m
"Merge upstream
$upstream
into
$branch
"
git merge origin/patches FETCH_HEAD
-m
"Merge upstream
$upstream
into
$branch
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment