Skip to content

Commit

Permalink
Pretend to be in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
j-woz committed Sep 11, 2024
1 parent dfe1d68 commit 9ecffbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/jenkins/anaconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -eu
# and one in which to install the package
# May be run interactively, just set environment variable WORKSPACE
# and clone Swift/T in that location (which is what Jenkins does)
# Also runs as GitHub action via /.github/workflows/conda.yaml

setopt PUSHD_SILENT

Expand All @@ -25,6 +26,9 @@ log()
print ${(%)DATE_FMT_NICE} "anaconda.sh:" ${*}
}

# If on GitHub, pretend we are in Jenkins:
if [[ ${GITHUB_ACTION:-0} != 0 ]] WORKSPACE=$RUNNER_TEMP

if [[ ${WORKSPACE:-0} == 0 ]] {
log "Set WORKSPACE!"
exit 1
Expand Down

0 comments on commit 9ecffbe

Please sign in to comment.