Skip to content

Commit

Permalink
Debug issue with formatter.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
maleadt committed Jan 20, 2025
1 parent 9ba0bca commit e141228
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ jobs:
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: Add upstream remote
run: |
git remote add upstream https://github.com/${{ github.repository }}
git fetch upstream
- name: Setup Julia
uses: julia-actions/setup-julia@v2
Expand All @@ -40,8 +44,12 @@ jobs:
id: runic
run: |
set +e
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
echo "base ref: ${{ github.base_ref }}"
git merge-base upstream/${{ github.base_ref }} HEAD
MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
echo "merge base: $MERGE_BASE"
DIFF=$(git runic --diff $MERGE_BASE)
echo "diff: $DIFF"
EXIT_CODE=$?
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e141228

Please sign in to comment.