Skip to content

Commit

Permalink
Fix formatter merge-base with forks.
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 e18b7c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/Format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
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
with:
Expand All @@ -40,7 +45,7 @@ jobs:
id: runic
run: |
set +e
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD) || exit 2
MERGE_BASE=$(git merge-base upstream/${{ github.base_ref }} HEAD) || exit 1
DIFF=$(git runic --diff $MERGE_BASE)
EXIT_CODE=$?
Expand Down

0 comments on commit e18b7c2

Please sign in to comment.