Skip to content

Commit

Permalink
wait-for-statuses: apply more pythonic path joining
Browse files Browse the repository at this point in the history
  • Loading branch information
tjurtsch committed Jan 7, 2021
1 parent 3d0779d commit 3c6f003
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wait-for-statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

numOfJobs = int(os.environ['NUM_OF_JOBS'])


if(numOfJobs > max_jobs):
sys.exit("ERROR: number of jobs exceeded max_jobs: " + str(max_jobs))

Expand All @@ -42,8 +41,9 @@

# Upload packages only when whole build succeeded
if(not jobFailure):
subprocess.call(os.environ['GITHUB_WORKSPACE'] + "/.github/scripts/master-package.sh")
subprocess.call(os.path.join(os.environ['GITHUB_WORKSPACE'], \
".github/scripts/master-package.sh")

# Always clean up
subprocess.call(os.environ['GITHUB_WORKSPACE'] + "/.github/scripts/cleanup-anaconda.sh")

subprocess.call(os.path.join(os.environ['GITHUB_WORKSPACE'], \
"/.github/scripts/cleanup-anaconda.sh")

0 comments on commit 3c6f003

Please sign in to comment.