Skip to content

Commit

Permalink
Get branch correctly on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Nov 8, 2024
1 parent f9125fd commit 283d324
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ jobs:
timeout_minutes: 15
max_attempts: 3
command: |
CURRENT_GIT_BRANCH=$(git branch --show-current)
if [[ " ${SKIP_BACK_COMPAT_TEST_BRANCHES[@]} " =~ " ${CURRENT_GIT_BRANCH} " ]]; then
echo "Skipping backwards compatibility test for this branch"
if [[ " ${SKIP_BACK_COMPAT_TEST_BRANCHES[@]} " =~ " ${GITHUB_HEAD_REF} " ]]; then
echo "Skipping backwards compatibility test for branch $GITHUB_HEAD_REF"
exit 0
else
echo "Running backwards compatibility test for this branch"
echo "Running backwards compatibility test for branch $GITHUB_HEAD_REF"
cd packages/e2e-tests && npm run test backwardsCompatibility.test.ts
fi

0 comments on commit 283d324

Please sign in to comment.