From 3fa5e2b6f18878eac004234b44023c79787a021e Mon Sep 17 00:00:00 2001 From: Hardik Joshi Date: Thu, 11 Jan 2024 23:38:34 +0530 Subject: [PATCH] corrected shell script --- .github/workflows/e2e_test.yml | 6 ------ e2e_tests/setup.sh | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index c9a087ad3..298fba4c4 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -42,12 +42,6 @@ jobs: - name: Setup test rails app run: ./e2e_tests/setup.sh - - name: log - run: printf "$SHA" - - - name: log-two - run: echo "${{ env.SHA }}" - - name: Wait for neo4j run: while [ $((curl localhost:7474/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done diff --git a/e2e_tests/setup.sh b/e2e_tests/setup.sh index e8bbb4c22..63d82b065 100755 --- a/e2e_tests/setup.sh +++ b/e2e_tests/setup.sh @@ -1,8 +1,6 @@ #!/bin/sh -git_hash=$(git rev-parse --short "$GITHUB_SHA") -# git_branch=${GITHUB_REF#refs/heads/} -echo "SHA=$(git_hash)" >> $GITHUB_ENV +echo "SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV gem install rails -v 7.1.2 --no-document # /Users/hardik_joshi/work/open_source/activegraph/docs/activegraph.rb sed 's/.*activegraph.*/gem '"'"'activegraph'"'"', github: "neo4jrb\/activegraph", ref: "95600cacb82e1239ca1d105886630603b67a3280"/' docs/activegraph.rb > template.tmp