Skip to content

Commit 6bc0c78

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

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/Format.yml

Lines changed: 11 additions & 2 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
@@ -40,10 +44,15 @@ jobs:
4044
id: runic
4145
run: |
4246
set +e
43-
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
47+
MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
4448
DIFF=$(git runic --diff $MERGE_BASE)
4549
EXIT_CODE=$?
4650
51+
# debug
52+
echo "base ref: ${{ github.base_ref }}"
53+
echo "merge base: $MERGE_BASE"
54+
echo "diff: $DIFF"
55+
4756
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
4857
echo "diff<<EOF" >> $GITHUB_OUTPUT
4958
echo "$DIFF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)