This commit is contained in:
@@ -34,6 +34,7 @@ def handle_git(args):
|
||||
INPUT_REPOSITORY = os.getenv('INPUT_REPOSITORY')
|
||||
INPUT_PATH = os.getenv('INPUT_PATH')
|
||||
DEPTH = os.getenv('INPUT_FETCH-DEPTH')
|
||||
GITHUB_ACTOR = os.getenv('GITHUB_ACTOR')
|
||||
GITHUB_EVENT_PATH = os.getenv('GITHUB_EVENT_PATH')
|
||||
GITHUB_SERVER_URL = os.getenv('GITHUB_SERVER_URL')
|
||||
GITHUB_REPOSITORY = os.getenv('GITHUB_REPOSITORY')
|
||||
@@ -103,6 +104,7 @@ def handle_git(args):
|
||||
org_id=7
|
||||
key = 'url."https://codex.r10x.net"/.insteadOf'
|
||||
value = 'git@codex.r10x.net:org-'+str(org_id)+'@github.com:'
|
||||
value = f'{GITHUB_ACTOR}@codex.r10x.net:'
|
||||
exec_cmd(cmd)
|
||||
|
||||
cmd = 'git -C ' + INPUT_PATH + ' remote add origin ' + GITHUB_SERVER_URL + '/' + REPOSITORY
|
||||
|
||||
Reference in New Issue
Block a user