File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2525import subprocess
2626from signals import signal_new_repo
2727import string
28+ from pathlib import Path
29+ import stat
2830
2931"""
3032Create automated deploys for repos both new and existing
@@ -609,10 +611,12 @@ def add_flask_quickstart():
609611 ) as fp :
610612 fp .write (deploy_sh )
611613
614+ # Mark deploy.sh execute bit
615+ f = Path (f"{ BASE_PATH } tmp-cloned-repos/{ APP_NAME } /.container-hosting/deploy.sh" )
616+ f .chmod (f .stat ().st_mode | stat .S_IEXEC )
617+
612618 index = repo .index
613- index .add (
614- [f"{ BASE_PATH } tmp-cloned-repos/{ APP_NAME } /.container-hosting/deploy.sh" ]
615- )
619+ index .add ([f"{ BASE_PATH } tmp-cloned-repos/{ APP_NAME } /.container-hosting/deploy.sh" ])
616620 index .commit ("Added deploy.sh file" )
617621
618622 # Create release.yml github workflow
You can’t perform that action at this time.
0 commit comments