Skip to content

Commit 373332c

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

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/Format.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
with:
2121
ref: ${{github.event.pull_request.head.ref}}
2222
repository: ${{github.event.pull_request.head.repo.full_name}}
23-
fetch-depth: 0
23+
24+
- name: Add upstream remote
25+
run: |
26+
git remote add upstream https://github.com/${{ github.repository }}
27+
git fetch upstream
2428
2529
- name: Setup Julia
2630
uses: julia-actions/setup-julia@v2
@@ -39,9 +43,14 @@ jobs:
3943
- name: Run Runic
4044
id: runic
4145
run: |
42-
set +e
43-
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
46+
set +e -x
47+
echo "base ref: ${{ github.base_ref }}"
48+
echo "upstream/master: $(git show-ref upstream/master)"
49+
echo "merge-base: $(git merge-base upstream/${{ github.base_ref }} HEAD)"
50+
MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
51+
echo "merge base var: $MERGE_BASE"
4452
DIFF=$(git runic --diff $MERGE_BASE)
53+
echo "diff: $DIFF"
4554
EXIT_CODE=$?
4655
4756
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)