Skip to content

Commit

Permalink
no luck with branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 8, 2024
1 parent 8d8f5ab commit a02f44f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: unit-testing
on:
push:
pull_request:
types: [opened, reopened]
types: [opened, reopened, synchronize]
jobs:
contentctl-unit-testing:
runs-on: ubuntu-latest
Expand All @@ -11,8 +11,8 @@ jobs:
steps:
- name: Check out the repository code
uses: actions/checkout@v3
with:
ref: develop
# with:
# ref: develop

- uses: actions/setup-python@v4
with:
Expand All @@ -33,11 +33,13 @@ jobs:
run: |
echo "Current Branch (Head Ref): ${{ github.head_ref }}"
echo "Target Branch (Base Ref): ${{ github.base_ref }}"
echo "reff - ${GITHUB_REF#refs/heads/}"
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
mkdir artifacts
cp summary.yml test_results/
cp test_results/summary.yml artifacts/
continue-on-error: true
Expand Down

0 comments on commit a02f44f

Please sign in to comment.