Обновить executor/cli/git.py
Test Actions / Builder (push) Successful in 18s

This commit is contained in:
2026-03-22 09:54:43 +03:00
parent e45636d615
commit 05b344dc8b
+6
View File
@@ -45,6 +45,9 @@ def handle_git(args):
REPOSITORY = INPUT_REPOSITORY
REF = INPUT_REF
data = f'https://{GITHUB_ACTOR}:{INPUT_TOKEN}@codex.r10x.net'
with open('/tmp/.git-credentials', 'w') as f:
f.write(data)
#response = requests.get(
# url='https://codex.r10x.net/api/v1/repos/meta/dsl',
# headers={
@@ -79,6 +82,9 @@ def handle_git(args):
result = os.popen(cmd)
print(result.read())
cmd = 'git config --global credential.helper store --file /tmp/.git-credentials'
exec_cmd(cmd)
cmd = f'git -C ' + INPUT_PATH + ' init'
exec_cmd(cmd)