Skip to content

Commit 1d233d7

Browse files
committed
Debug issue with formatter.
[ci skip]
1 parent 9ba0bca commit 1d233d7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/Format.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
repository: ${{github.event.pull_request.head.repo.full_name}}
2323
fetch-depth: 0
2424

25+
- name: Add upstream remote
26+
run: |
27+
git remote add upstream https://github.com/${{ github.repository }}
28+
git fetch upstream
29+
2530
- name: Setup Julia
2631
uses: julia-actions/setup-julia@v2
2732
with:
@@ -39,9 +44,14 @@ jobs:
3944
- name: Run Runic
4045
id: runic
4146
run: |
42-
set +e
43-
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
47+
set +e -x
48+
echo "base ref: ${{ github.base_ref }}"
49+
echo "upstream/master: $(git show-ref upstream/master)"
50+
echo "merge-base: $(git merge-base upstream/${{ github.base_ref }} HEAD)"
51+
MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
52+
echo "merge base var: $MERGE_BASE"
4453
DIFF=$(git runic --diff $MERGE_BASE)
54+
echo "diff: $DIFF"
4555
EXIT_CODE=$?
4656
4757
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)