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
97277e4c
Commit
97277e4c
authored
Nov 11, 2020
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repurpose transpile-push script to transpile-branch
parent
66f01ddf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
17 deletions
+31
-17
transpile.yml
.github/workflows/transpile.yml
+2
-1
transpile-branch.sh
scripts/upgrade-safe/transpile-branch.sh
+29
-0
transpile-push.sh
scripts/upgrade-safe/transpile-push.sh
+0
-16
No files found.
.github/workflows/transpile.yml
View file @
97277e4c
...
@@ -28,4 +28,5 @@ jobs:
...
@@ -28,4 +28,5 @@ jobs:
restore-keys
:
npm-v2-
restore-keys
:
npm-v2-
-
run
:
npm ci
-
run
:
npm ci
if
:
steps.cache.outputs.cache-hit != 'true'
if
:
steps.cache.outputs.cache-hit != 'true'
-
run
:
bash scripts/upgrade-safe/transpile-push.sh
-
run
:
bash scripts/upgrade-safe/transpile-branch.sh master origin/master
-
run
:
git push origin master
scripts/upgrade-safe/transpile-branch.sh
0 → 100644
View file @
97277e4c
#!/usr/bin/env bash
set
-euo
pipefail
if
[
$#
-lt
1
]
;
then
echo
"usage: bash
$0
<branch> [base]"
>
&2
exit
1
fi
set
-x
branch
=
"
$1
"
base
=
"
${
2
:-}
"
bash scripts/upgrade-safe/transpile.sh
bash scripts/upgrade-safe/git-user-config.sh
commit
=
"
$(
git rev-parse
--short
HEAD
)
"
git add contracts
git checkout
--orphan
"
$branch
"
if
[
-n
"
$base
"
]
;
then
git reset
--soft
"
$base
"
fi
if
!
git diff
--cached
--quiet
;
then
git commit
-m
"Transpile
$commit
"
fi
scripts/upgrade-safe/transpile-push.sh
deleted
100644 → 0
View file @
66f01ddf
#!/usr/bin/env bash
set
-euo
pipefail
-x
bash scripts/upgrade-safe/transpile.sh
bash scripts/upgrade-safe/git-user-config.sh
COMMIT
=
"
$(
git rev-parse
--short
HEAD
)
"
git add contracts
git checkout
--orphan
master
git reset
--soft
origin/master
if
!
git diff
--cached
--quiet
;
then
git commit
-m
"Transpile
$COMMIT
"
fi
git push origin master
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