Skip to content

Commit

Permalink
fix: branch name for pull_request trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Jan 3, 2025
1 parent 6cfb3f2 commit f0e38f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
pnpm install
- name: Clone globalping-dash-directus
env:
CURRENT_BRANCH: ${{ github.head_ref || github.ref_name }}
run: |
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: $current_branch."
git clone -b $current_branch https://github.com/jsdelivr/globalping-dash-directus.git test/e2e/globalping-dash-directus || git clone https://github.com/jsdelivr/globalping-dash-directus.git test/e2e/globalping-dash-directus
echo "Current branch: ${{ CURRENT_BRANCH }}."
git clone -b ${{ CURRENT_BRANCH }} https://github.com/jsdelivr/globalping-dash-directus.git test/e2e/globalping-dash-directus || git clone https://github.com/jsdelivr/globalping-dash-directus.git test/e2e/globalping-dash-directus
- name: Install globalping-dash-directus dependencies
working-directory: ./test/e2e/globalping-dash-directus
Expand Down

0 comments on commit f0e38f1

Please sign in to comment.