Skip to content

Commit

Permalink
Update pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nelitow committed Dec 24, 2024
1 parent 59372f4 commit d79d313
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,24 @@ jobs:

- name: Check Changesets
run: |
# First ensure we're on the PR branch
git checkout -b pr-branch ${{ github.event.pull_request.head.sha }}
echo "Current branch:"
git branch --show-current
echo "\nRemote branches:"
git branch -r
echo "\nTrying to fetch main:"
git fetch origin main
echo "\nChecking if main exists:"
git rev-parse --verify origin/main
echo "\nGetting merge base:"
BASE_COMMIT=$(git merge-base origin/main HEAD)
echo "Base commit: $BASE_COMMIT"
git fetch origin main:main
echo "\nCurrent HEAD:"
git rev-parse HEAD
echo "\nChecking commits:"
echo "Main commit: $(git rev-parse main)"
echo "Current commit: $(git rev-parse HEAD)"
echo "\nRunning changeset check:"
pnpm changeset status --since $BASE_COMMIT
pnpm changeset status --since origin/main
audit:
name: Audit
Expand Down

0 comments on commit d79d313

Please sign in to comment.