From 98b55bf10cc5677293c01d687ec4a052b9e8b88e Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Mon, 5 Apr 2021 12:40:32 +0300 Subject: [PATCH] Don't use the github actor env var when not inside a PR --- .github/workflows/integration-test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 0261967..ffb0c14 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -13,7 +13,11 @@ jobs: python-version: 3.6 - name: Set BOOTSTRAP_PIP_SPEC value run: | - echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_ACTOR/the-littlest-jupyterhub.git@$GITHUB_SHA" >> $GITHUB_ENV + if ${{ github.event_name != 'pull_request }}; then + echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_REPOSITORY.git@$GITHUB_SHA" >> $GITHUB_ENV + else + echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_ACTOR/the-littlest-jupyterhub.git@$GITHUB_SHA" >> $GITHUB_ENV + fi - name: Build systemd image run: | .github/integration-test.py build-image