Skip to content

Commit

Permalink
get branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex committed Jul 26, 2024
1 parent 604c1a5 commit bba5375
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dind_os_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up Environment
- name: Get branch name from PR
id: get_branch
run: |
BRANCH_NAME=${GITHUB_HEAD_REF}
echo "MQ_API_TEST_BRANCH=${BRANCH_NAME}" >> $GITHUB_ENV
- name: Set up Other Environment
run: |
echo 'export MARQO_API_TESTS_ROOT="${{ github.workspace }}"' >> $GITHUB_ENV
export MQ_API_TEST_BRANCH=$(echo "${GITHUB_REF}" | cut -d'/' -f3-)
echo "MQ_API_TEST_BRANCH=$MQ_API_TEST_BRANCH" >> $GITHUB_ENV
CUSTOM_TEST_IMG="${{ github.event.inputs.image_to_test }}"
export MQ_API_TEST_IMG=${CUSTOM_TEST_IMG:-"marqo_docker_0"}
Expand Down

0 comments on commit bba5375

Please sign in to comment.