File size: 259 Bytes
a4c83b9
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import subprocess
import os

PAT = os.getenv("GITHUB_TOKEN")
USER = os.getenv("GITHUB_USER")
SLUG = os.getenv("GITHUB_SLUG")

os.system(f"git clone https://{USER}:{PAT}@github.com/{SLUG}.git")
os.chdir(SLUG.replace(f"{USER}/", ""))
os.system("python demo.py")