File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
GITHUB_REPOSITORY = os .getenv ('GITHUB_REPOSITORY' )
15
15
16
16
GITHUB_TOKEN = os .getenv ('GITHUB_TOKEN' )
17
+ GITHUB_REF_NAME = os .getenv ('GITHUB_REF_NAME' )
17
18
PRODUCTION = os .getenv ('PRODUCTION' , False )
18
19
19
20
CURRENT_FILE = Path (__file__ )
@@ -191,6 +192,13 @@ def main():
191
192
# git log --max-count=1 --patch
192
193
print (local_repo .git .log (max_count = '1' , patch = True , color = 'always' ))
193
194
195
+ # Push local changes.
196
+ server = 'https://{}@github.com/{}.git' .format (
197
+ GITHUB_TOKEN , GITHUB_REPOSITORY )
198
+ print ('pushing changes to branch "{}" of repository "{}"' .format (
199
+ GITHUB_REF_NAME , GITHUB_REPOSITORY ))
200
+ print (local_repo .git .push (server , GITHUB_REF_NAME ))
201
+
194
202
# Create tag and release.
195
203
tag = result ['new_version' ]
196
204
tag_message = result ['message' ]
You can’t perform that action at this time.
0 commit comments