Compare commits

...

4 commits

Author SHA1 Message Date
5a2cf6253b
build-project
All checks were successful
/ job (push) Successful in 3m0s
2024-05-30 12:35:05 +02:00
380684eed9
cd-clone-branch 2024-05-30 12:03:15 +02:00
50247d02dd
−.sh 2024-05-30 12:00:26 +02:00
40e80c90b0
sorted 2024-05-30 00:49:23 +02:00
4 changed files with 13 additions and 20 deletions

View file

@ -21,10 +21,20 @@ def cd_browse_workspace():
absolute_path = os.path.join(directory, file)
relative_path = os.path.relpath(absolute_path, start=project.root)
paths.append(relative_path)
for path in paths:
for path in sorted(paths):
print(path)
def cd_build_project():
for extension in ['py', 'sh']:
path = os.path.join(project.root, f'build.{extension}')
if os.path.exists(path):
ps.run(path)
break
else:
pass
def cd_clone_branch():
print(f'''\
{project.url}
@ -35,7 +45,7 @@ def cd_clone_branch():
'--branch', project.branch,
'--',
project.url,
os.path.realpath(os.curdir),
project.root,
)
@ -48,6 +58,7 @@ def install_commands(path):
user = '/usr/local/bin'
for command in [
'browse-workspace',
'build-project',
'clone-branch',
'list-environment',
]:

View file

@ -1 +0,0 @@
tree -a "${GITHUB_WORKSPACE}"

View file

@ -1,9 +0,0 @@
if [ -x './build.py' ] ; then
./build.py \
|| exit
elif [ -x './build.sh' ] ; then
./build.sh \
|| exit
else
exit
fi

View file

@ -1,8 +0,0 @@
git clone \
--branch "${GITHUB_REF_NAME}" \
-- \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
'.'
rm --force --recursive \
'.git' '.gitignore'