From 44900679e73da265ad12815b74f8277a593d404e Mon Sep 17 00:00:00 2001 From: Luke Brody Date: Tue, 13 Aug 2024 01:23:27 -0700 Subject: [PATCH] need to cd /urbanstats --- .github/workflows/check.yml | 1 + test-ci.sh | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 514994d0a..82e26f93e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,6 +3,7 @@ on: [push] env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}/e2e + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} jobs: lint: runs-on: ubuntu-22.04 diff --git a/test-ci.sh b/test-ci.sh index 1e7d70b06..953e3329c 100755 --- a/test-ci.sh +++ b/test-ci.sh @@ -3,13 +3,12 @@ set -e -# env: -# BRANCH_NAME: ${{ github.head_ref || github.ref_name }} +cd /urbanstats pushd ../density-db git fetch --depth 1 origin # cloned in docker git checkout origin -git checkout origin/$BRANCH_NAME || true # Checkout the same branch name on the remote, if it exists +git checkout origin/$BRANCH_NAME || true # Checkout the same branch name on the remote, if it exists. BRANCH_NAME defined in workflow env python3 -m http.server &