print branch names

This commit is contained in:
Bhavin Patel
2024-07-08 15:49:13 -07:00
parent de8e09485d
commit 8d8f5abfac
+3 -3
View File
@@ -2,7 +2,7 @@ name: unit-testing
on:
push:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, reopened]
jobs:
contentctl-unit-testing:
runs-on: ubuntu-latest
@@ -33,8 +33,8 @@ jobs:
run: |
echo "Current Branch (Head Ref): ${{ github.head_ref }}"
echo "Target Branch (Base Ref): ${{ github.base_ref }}"
# git pull
git checkout ${GITHUB_REF#refs/base/}
git pull
git checkout ${GITHUB_REF#refs/heads/}
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 }}
mkdir test_results