Skip to content

Commit

Permalink
print branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 8, 2024
1 parent e4ff59d commit de8e094
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
- name: Run ContentCTL test for changes against develop
run: |
git pull
git checkout ${GITHUB_REF#refs/heads/}
echo "Current Branch (Head Ref): ${{ github.head_ref }}"
echo "Target Branch (Base Ref): ${{ github.base_ref }}"
# git pull
git checkout ${GITHUB_REF#refs/base/}
echo "The target branch for this PR is ${{ github.base_ref }}"
contentctl test --disable-tqdm --post-test-behavior never_pause mode:changes --mode.target-branch ${{ github.base_ref }}
# contentctl test --disable-tqdm --post-test-behavior never_pause mode:changes --mode.target-branch ${{ github.base_ref }}
mkdir test_results
# cp summary.yml test_results/
cp summary.yml test_results/
cp test_results/summary.yml artifacts/
continue-on-error: true

Expand Down

0 comments on commit de8e094

Please sign in to comment.