Change GitHub Actions path to one with spaces (#8850)

Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
mehrdadn
2020-06-08 23:48:02 -07:00
committed by GitHub
co-authored by Mehrdad
parent 831b2fe51d
commit b8cc9a1cbb
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -28,7 +28,6 @@ jobs:
python-version: 3.6
env:
PYTHON: ${{ matrix.python-version }}
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_COMMIT: ${{ github.sha }}
#TRAVIS_PULL_REQUEST is defined in the scripts to account for "false"
steps:
@@ -37,6 +36,8 @@ jobs:
shell: bash -e -o pipefail -l {0}
run: |
# Note: only configure settings here that are required _before_ the repository is cloned (such as Git settings).
# Put a path with spaces (and use common words like 'src') to verify correct builds
export GITHUB_WORKSPACE="${GITHUB_WORKSPACE%/*} src/${GITHUB_WORKSPACE##*/}"
if [ ! -f ~/.profile ] && [ ! -f ~/.bash_profile ]; then # missing on some machines, but needed for ~/.bashrc
echo 'if [ -n "${BASH_VERSION}" ] && [ -f ~/.bashrc ]; then . ~/.bashrc; fi' >> ~/.profile
fi