File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments